From d87a645c24c45a8b0d03f0c2f90aebe24d51c804 Mon Sep 17 00:00:00 2001 From: HanzZ Date: Fri, 11 Jan 2013 22:42:11 +0100 Subject: [PATCH] postgresql docs update --- documentation/configuration/postgresql.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/documentation/configuration/postgresql.md b/documentation/configuration/postgresql.md index e2154c0a..38a19b7e 100644 --- a/documentation/configuration/postgresql.md +++ b/documentation/configuration/postgresql.md @@ -15,7 +15,25 @@ database| server | string | Database server | Database server. database| user | string | PostgreSQL user. | PostgreSQL user. database| password | string | PostgreSQL Password. | PostgreSQL Password. database| prefix | string | | Prefix of tables in database. +database| connectionstring | string | Postgres connection string | If you set this, it will ignore all other options above aside from type and prefix. This allows you to set any typical postgres connection string option, separated by spaces (no semicolons). ## Creating the database Spectrum 2 will create the database on the first execution. Once the database is created, you can remove the CREATE TABLE permissions to the PostgreSQL database user you use to connect the SQL. + +## Some examples + +Using connectionstring: + + [database] + type=pqxx + connectionstring=host=localhost database=spectrum2 user=myuser password=whatever + +Using traditional options: + + [database] + type=pqxx + server=localhost + database=spectrum2 + user=myuser + password=whatever