diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2024-01-24 19:01:49 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2024-01-24 19:01:49 +0300 |
commit | ba80b1f8c8354103bb98d31e252c64254f288273 (patch) | |
tree | 6e0fe6e82a58ee0fa4f9817dfc764ac5285a2368 /libodb-sqlite/odb/sqlite/details/options.cli | |
parent | b650caf5661dec901eae39e374c2c2ebd625d152 (diff) | |
parent | e5d0186db99492a139237067bab841a5b83463af (diff) |
Merge branch 'libodb-sqlite' into multi-package
Diffstat (limited to 'libodb-sqlite/odb/sqlite/details/options.cli')
-rw-r--r-- | libodb-sqlite/odb/sqlite/details/options.cli | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/libodb-sqlite/odb/sqlite/details/options.cli b/libodb-sqlite/odb/sqlite/details/options.cli new file mode 100644 index 0000000..d1955c3 --- /dev/null +++ b/libodb-sqlite/odb/sqlite/details/options.cli @@ -0,0 +1,47 @@ +// file : odb/sqlite/details/options.cli +// license : GNU GPL v2; see accompanying LICENSE file + +include <string>; + +namespace odb +{ + namespace sqlite + { + namespace details + { + class options + { + std::string --database + { + "<filename>", + "SQLite database file name. If the database file is not specified + then a private, temporary on-disk database will be created. Use + the \cb{:memory:} special name to create a private, temporary + in-memory database." + }; + + bool --create + { + "Create the SQLite database if it does not already exist. By default + opening the database fails if it does not already exist." + }; + + bool --read-only + { + "Open the SQLite database in read-only mode. By default the database + is opened for reading and writing if possible, or reading only if + the file is write-protected by the operating system." + }; + + std::string --options-file + { + "<file>", + "Read additional options from <file>. Each option should appear on a + separate line optionally followed by space or equal sign (\cb{=}) + and an option value. Empty lines and lines starting with \cb{#} are + ignored." + }; + }; + } + } +} |