From 77bbae6038d20576a4807ed8ca834685a1e85afa Mon Sep 17 00:00:00 2001 From: Constantin Michael Date: Tue, 3 May 2011 12:26:33 +0200 Subject: Add pgsql database implementation --- odb/pgsql/details/options.cli | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) (limited to 'odb/pgsql/details') diff --git a/odb/pgsql/details/options.cli b/odb/pgsql/details/options.cli index 925cef3..ef81993 100644 --- a/odb/pgsql/details/options.cli +++ b/odb/pgsql/details/options.cli @@ -13,7 +13,7 @@ namespace odb { class options { - std::string --user + std::string --user | --username { "", "PostgreSQL database user." @@ -22,10 +22,10 @@ namespace odb std::string --password { "", - "PostgreSQL database password" + "PostgreSQL database password." }; - std::string --dbname + std::string --database | --dbname { "", "PostgreSQL database name." @@ -33,21 +33,24 @@ namespace odb std::string --host { - "", - "Name of the PostgreSQL host to connect to (localhost by default)." + "", + "PostgreSQL database host name or address (localhost by default)." }; - std::string --hostaddr + std::string --port { - "", - "Numeric IP address of host to connect to in dotted-decimal format." + "", + "PostgreSQL database port number or socket file name extension for + Unix-domain connections." }; - unsigned int --port = 0 - { - "", - "PostgreSQL database port number." - }; + std::string --options-file + { + "" + "Read additional options from . Each option appearing on a + separate line optionally followed by space and an option value. + Empty lines and lines starting with \cb{#} are ignored." + }; }; } } -- cgit v1.1