From cd44a367fd73293b1c8edc36aa61667ca020a2eb Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 5 Mar 2012 11:59:00 +0200 Subject: Add support for generating schema creation code into separate C++ file --- odb/options.cli | 42 ++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 40 insertions(+), 2 deletions(-) (limited to 'odb/options.cli') diff --git a/odb/options.cli b/odb/options.cli index f501315..ae72e25 100644 --- a/odb/options.cli +++ b/odb/options.cli @@ -79,6 +79,10 @@ class options "Generate the database schema in the specified format. Pass \cb{sql} as to generate the database schema as a standalone SQL file or pass \cb{embedded} to embed the schema into the generated C++ code. + The \cb{separate} value is similar to \cb{embedded} except the schema + creation code is generated into a separate C++ file (\cb{name-schema.cxx} + by default). This value is primarily useful if you want to place the + schema creation functionality into a separate program or library. Repeat this option to generate the same database schema in multiple formats." }; @@ -188,6 +192,14 @@ class options of the generated C++ files." }; + std::string --schema-file-suffix = "-schema" + { + "", + "Use instead of the default \cb{-schema} to construct the name + of the generated schema C++ source file. See the \cb{--schema-format} + option for details." + }; + std::string --hxx-suffix = ".hxx" { "", @@ -236,6 +248,12 @@ class options "Insert at the beginning of the generated C++ source file." }; + std::vector --schema-prologue + { + "", + "Insert at the beginning of the generated schema C++ source file." + }; + std::vector --sql-prologue { "", @@ -262,6 +280,12 @@ class options "Insert at the end of the generated C++ source file." }; + std::vector --schema-epilogue + { + "", + "Insert at the end of the generated schema C++ source file." + }; + std::vector --sql-epilogue { "", @@ -291,6 +315,13 @@ class options source file." }; + std::string --schema-prologue-file + { + "", + "Insert the content of at the beginning of the generated schema + C++ source file." + }; + std::string --sql-prologue-file { "", @@ -321,6 +352,13 @@ class options file." }; + std::string --schema-epilogue-file + { + "", + "Insert the content of at the end of the generated schema C++ + source file." + }; + std::string --sql-epilogue-file { "", @@ -454,7 +492,7 @@ class options ::mssql_version --mssql-server-version (10, 0) { - "", + "", "Specify the minimum SQL Server server version with which the generated C++ code will be used. This information is used to enable version-specific optimizations and workarounds in the generated C++ @@ -502,7 +540,7 @@ class options ::oracle_version --oracle-client-version (10, 1) { - "", + "", "Specify the minimum Oracle client library (OCI) version with which the generated C++ code will be linked. This information is used to enable version-specific optimizations and workarounds in the generated C++ -- cgit v1.1