Nochetodbload command line options
This page describes nochetodbload command line options.
Help
Use --help
to show command line options help.
$ nochetodbload --help Nocheto Database Loader, 3.2.0:2007M, Ubuntu20_04, PACHMAN edition, Petr Bílek (nocheto.sallyx.org) USAGE: nochetodbload [-h|--help] [-o|--owner] [-n|--namespace <namespace>] [-c|--config <file.ini>] [-p|--puzzles|-g|--games] [--dry-run] [--dangerous-speed|-s] [--ignore-duplicities|-i] {-d|--delete-game <id>|--upgrade {database|explorer}|-- file.pgn} file.ini - read configuration from this file (after reading nocheto.ini and dbeval.ini) file.pgn - load PGN games from this file id - id of game to be deleted
$ nochetodbload --help Nocheto Database Loader 2.7.1.1928M, Ubuntu19_10, author: Petr Bílek (nocheto.sallyx.org) USAGE: nochetodbload [-h|--help] [-o|--owner] [-n|--namespace <namespace>] [-c|--config <file.ini>] [-p|--puzzles|-g|--games] [--dangerous-speed|-s] [--ignore-duplicities|-i] {-d|--delete-game <id>|-- file.pgn} file.ini - read configuration from this file (after reading nocheto.ini) file.pgn - load PGN games from this file id - id of game to be deleted
Config
Use --config filename.ini
to read the given configuration file.
Nochetodbload always read ~/.nocheto/configs/nocheto.ini
file first and then the file required by
--config
option. Values read from the first config file are replaced
by values read from the second one (if they are defined there).
The filename can be absolute path (i.e. ~/.nocheto/configs/tweak.ini
)
or just the base name (i.e. tweak.ini
) in which case the full
path is assembled from ~/.nocheto/configs/
and this name.
Namespaces
Use --namespace namespace
to load games under the given
namespace.
Default namespace is primary.
You need to first create the namespace in nocheto by the addnamespace <name> [<description>] command.
Add games
Use --games
to also add games to the database
(otherwise only new position from the games are stored).
Tip: Do not use this for loading PGN's with puzzles, endgame studies etc.
Add puzzles
Use --puzzles
to add puzzles to database
(otherwise only new positions are stored).
Current version of nocheto cannot read puzzles from database, this feature will come in future
versions. But it doesn't hurt to have puzzles in the database, it allowes you to evaluate theirs positions.
(You can of course load these positions by not using the --puzzles
or --games
options in the first place.)
Dry run3.2.0
Use --dry-run
oprtion to let nochetodbload run without doing anything but printing
a similar output as if it did.
You can use it to check what would happen if you run nochetodbload without the --dry-run
option.
This options doesn't work with the --upgrade
!
Dangerous speed
The --dangerous-speed
option increases speed of loading PGN
file into database, but with a risk of corrupting the database.
It is usefull for loading huge file(s), but in case of a power shorage of your computer
or other unexpected errors your database might end up in a broken, unusable state.
Always back up you database file before running nochetodbload with --dangerous-speed option!
Ignore duplicities
The --ignore-duplicities
option disable searching for duplicities
and speeds up loading games significantly.
You shoud use it only if you are sure all loaded games are unique (otherwise you could have some games in the database more than once).
PGN file
file.pgn
is the PGN file, which will be loaded into (sqlite) database.
It can contain more than one game.
Delete a game2.0.0
Use --delete-game <id>
to delete a game.
ID is an unique identificator of a game, which is shown by nochetodbload after a game is loaded (using the --games option). This ID is also shown by the search command in nocheto.
Upgrade3.0.0
New version of nocheto might change the database format.
Use --upgrade database
to upgrade database configured in [database] config
section and --upgrade explorer
to upgrade database configured in [explorer] config
section.
The updated database will probably not be possible to use with the older nocheto versions.
Backup your databases before the upgrade!
Owner2.1.0
Use --owner
to show the owner's credentials.