diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2011-08-22 09:21:32 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2011-08-22 09:21:32 +0200 |
commit | a94dde17a2e6a41c36dd052bc8d2bbbc224aeb97 (patch) | |
tree | 959aa2b294025aa41229dafb885c8d740eb70c0d /odb/options.cli | |
parent | 6a6095112daabd18d445ecf0d4c05e993e54236c (diff) |
Add --table-prefix option
Assign unique table prefixes to most examples. This makes sure that
we don't end up with broken schemas where half of the tables were
changed by the next test and the other half has foreign keys that
now point to nowhere.
Diffstat (limited to 'odb/options.cli')
-rw-r--r-- | odb/options.cli | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/odb/options.cli b/odb/options.cli index 34c35a6..65c9873 100644 --- a/odb/options.cli +++ b/odb/options.cli @@ -142,6 +142,16 @@ class options profile." }; + std::string --table-prefix + { + "<prefix>", + "Add <prefix> to table and index names. The prefix is added to both + names that were specified with the \cb{db table} pragma and those + that were automatically derived from class names. If you require a + separator, such as an underscore, between the prefix and the name, + then you should include it into the prefix value." + }; + std::string --output-dir | -o { "<dir>", |