From 4ac5ce29ecb1a8ce362e411becb9161888bd6eef Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 14 Sep 2010 11:57:40 +0200 Subject: Add argc/argv database ctor --- odb/mysql/details/options.cli | 62 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 odb/mysql/details/options.cli (limited to 'odb/mysql/details') diff --git a/odb/mysql/details/options.cli b/odb/mysql/details/options.cli new file mode 100644 index 0000000..04de6b0 --- /dev/null +++ b/odb/mysql/details/options.cli @@ -0,0 +1,62 @@ +// file : odb/mysql/details/options.cli +// author : Boris Kolpackov +// copyright : Copyright (c) 2009-2010 Code Synthesis Tools CC +// license : GNU GPL v2; see accompanying LICENSE file + +include ; + +namespace odb +{ + namespace mysql + { + namespace details + { + class options + { + std::string --user + { + "", + "MySQL database user." + }; + + std::string --password + { + "", + "MySQL database password" + }; + + std::string --database + { + "", + "MySQL database name." + }; + + std::string --host + { + "", + "MySQL database host name or address (localhost by default)." + }; + + unsigned int --port = 0 + { + "", + "MySQL database port number." + }; + + std::string --socket + { + "", + "MySQL database socket name." + }; + + 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