dminit - creates and initialises DMPACK databases
dminit --help
dminit --version
dminit --type type --database file [--force] [--sync] [--transfer] [--wal]
The dminit utility program creates beat, image, log, and observation
databases. No action is performed if the specified database already exists,
unless command-line argument --force is passed.
A synchronisation table is required for observation and log synchronisation with an RPC server. The argument may be omitted if this functionality is not used.
Write-Ahead Logging (WAL) should be enabled for databases with multiple readers.
- --database, -d file
-
File path of the new SQLite database.
- --force, -F
-
Force creation of tables even if the database already exists.
- --help, -h
-
Print available command-line arguments and quit.
- --sync, -s
-
Add synchronisation tables. Enable for data synchronisation between client and server.
- --transfer, -x
-
Add transfers table to database if type is
image. - --type, -t [beat|image|log|observ]
-
Type of database, either beat, image, log, or observation.
- --version, -v
-
Print version information and quit.
- --wal, -W
-
Enable Write-Ahead Logging.
Create a beat database:
$ dminit -t beat -d beat.sqlite -W
Create a log database with remote synchronisation tables:
$ dminit -t log -d log.sqlite -s -W
Create an observation database with remote synchronisation tables:
$ dminit -t observ -d observ.sqlite -s -W
Create an image database with transfer table:
$ dminit -t image -d image.sqlite -x