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 --- doc/odb-prologue.xhtml | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) (limited to 'doc/odb-prologue.xhtml') diff --git a/doc/odb-prologue.xhtml b/doc/odb-prologue.xhtml index d610b2b..7acd11d 100644 --- a/doc/odb-prologue.xhtml +++ b/doc/odb-prologue.xhtml @@ -67,17 +67,30 @@

For an input file in the form name.hxx (other file extensions can be used instead of .hxx), - the following C++ files are generated: + in the single-database mode (the default), the generated C++ files + by default have the following names: name-odb.hxx (header file), name-odb.ixx (inline file, generated unless the --suppress-inline option is specified), and name-odb.cxx (source file). Additionally, if the --generate-schema option is - specified and the sql schema format is requested, - the name.sql database schema file is generated. If - the separate schema format is requested, the database - creation code is generated into the separate - name-schema.cxx file.

+ specified and the sql schema format is requested (see + --schema-format), the name.sql + database schema file is generated. If the separate + schema format is requested, the database creation code is generated + into the separate name-schema.cxx file.

+ +

In the multi-database mode (see the --multi-database + option below), the generated files corresponding to the + common database have the same names as in the + single-database mode. For other databases, the file names include + the database name: + name-odb-db.hxx, + name-odb-db.ixx, + name-odb-db.cxx, + name-db.sql, and + name-schema-db.cxx + (where db is the database name).

OPTIONS

-- cgit v1.1