From 2ad2e5500dd075db421a516502c9e522fdc34ee0 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 5 Dec 2012 17:37:46 +0200 Subject: Documentation for multi-database support --- odb/options.cli | 30 +++++++++++++++++++++++------- 1 file changed, 23 insertions(+), 7 deletions(-) (limited to 'odb') diff --git a/odb/options.cli b/odb/options.cli index 6da45e8..d756494 100644 --- a/odb/options.cli +++ b/odb/options.cli @@ -49,14 +49,23 @@ class options { "", "Generate code for the database. Valid values are \cb{mssql}, - \cb{mysql}, \cb{oracle}, \cb{pgsql}, \cb{sqlite}, and \cb{common}." + \cb{mysql}, \cb{oracle}, \cb{pgsql}, \cb{sqlite}, and \cb{common} + (multi-database mode only)." }; ::multi_database --multi-database | -m = ::multi_database::disabled { "", "Enable multi-database support and specify its type. Valid values - for this option are \cb{static} and \cb{dynamic}." + for this option are \cb{static} and \cb{dynamic}. + + In the multi-database mode, options that determine the kind (for + example, \cb{--schema-format}), names (for example, + \cb{--odb-file-suffix}), or content (for example, prologue and + epilogue options) of the output files can be prefixed with the + database name followed by a colon, for example, \cb{mysql:value}. + This restricts the value of such an option to only apply to + generated files corresponding to this database." }; ::database --default-database @@ -276,22 +285,29 @@ class options database_map --odb-file-suffix { "", - "Use instead of the default \cb{-odb} to construct the names - of the generated C++ files." + "Use to construct the names of the generated C++ files. In + the single-database mode the default value for this option is \cb{-odb}. + In the multi-database mode it is \cb{-odb} for the files corresponding + to the \cb{common} database and \c{\b{-odb-}\i{db}} (where \ci{db} is + the database name) for other databases." }; database_map --sql-file-suffix { "", "Use to construct the name of the generated schema SQL file. - By default no suffix is used." + In the single-database mode by default no suffix is used. In the + multi-database mode the default value for this option is + \c{\b{-}\i{db}} (where \ci{db} is the database name)." }; database_map --schema-file-suffix { "", - "Use instead of the default \cb{-schema} to construct the name - of the generated schema C++ source file. See the \cb{--schema-format} + "Use to construct the name of the generated schema C++ source + file. In the single-database mode the default value for this option is + \cb{-schema}. In the multi-database mode it is \c{\b{-schema-}\i{db}} + (where \ci{db} is the database name). See the \cb{--schema-format} option for details." }; -- cgit v1.1