aboutsummaryrefslogtreecommitdiff
path: root/odb/mysql/details
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2010-09-14 11:57:40 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2010-09-14 11:57:40 +0200
commit4ac5ce29ecb1a8ce362e411becb9161888bd6eef (patch)
tree8007b3ff9158482e60253f3a8d85f0c149b30de0 /odb/mysql/details
parent82aad8dee49a0c645ada631cc8aeb0266ba3ecc5 (diff)
Add argc/argv database ctor
Diffstat (limited to 'odb/mysql/details')
-rw-r--r--odb/mysql/details/options.cli62
1 files changed, 62 insertions, 0 deletions
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 <boris@codesynthesis.com>
+// copyright : Copyright (c) 2009-2010 Code Synthesis Tools CC
+// license : GNU GPL v2; see accompanying LICENSE file
+
+include <string>;
+
+namespace odb
+{
+ namespace mysql
+ {
+ namespace details
+ {
+ class options
+ {
+ std::string --user
+ {
+ "<name>",
+ "MySQL database user."
+ };
+
+ std::string --password
+ {
+ "<str>",
+ "MySQL database password"
+ };
+
+ std::string --database
+ {
+ "<name>",
+ "MySQL database name."
+ };
+
+ std::string --host
+ {
+ "<addr>",
+ "MySQL database host name or address (localhost by default)."
+ };
+
+ unsigned int --port = 0
+ {
+ "<integer>",
+ "MySQL database port number."
+ };
+
+ std::string --socket
+ {
+ "<name>",
+ "MySQL database socket name."
+ };
+
+ std::string --options-file
+ {
+ "<file>",
+ "Read additional options from <file>. Each option appearing on a
+ separate line optionally followed by space and an option value.
+ Empty lines and lines starting with \cb{#} are ignored."
+ };
+ };
+ }
+ }
+}