opentrep-dbmgr(1)
okay bestie, welcome to opentrep-dbmgr(1) from the General Commands Manual β the interactive little gremlin that manages your SQL database and wants you to thrive π
β¨
π NAME π
opentrep-dbmgr β interactive command-line utility to manage the SQL database (SQLite3 or MySQL). No cap, it's giving database-manager main character energy π.
β¨ SYNOPSIS β¨
opentrep-dbmgr [--prefix] [-v|--version] [-h|--help] [-p|--porfile <POR-file-path>] [-d|--xapiandb <Xapian-travel-database-path>] [-t|--sqldbtype <SQL-database-type>] [-s|--sqldbconx <SQL-database-connection-string>] [-l|--log <path-to-output-log-file>]
π¦ DESCRIPTION π¦
opentrep-dbmgr is a small program to manage the relational (SQL) database. For now, only SQLite3 and MariaDB/MySQL databases are supported π.
The file with the list of the OPTD-maintained POR (points of reference) may be parsed, and the corresponding content inserted into the SQL database. At the prompt, launch the help or tutorial command to heva more details β yes, the page says βheva,β weβre keeping the typo, periodt π.
okay so opentrep-dbmgr accepts the following options:
--prefixβ show the Opentrep installation prefix π-v,--versionβ print the currently installed version of Opentrep on the standard output π-h,--helpβ produce that message and show usage π«Ά-p,--porfile <POR-file-path>β path (directory and file name) of the file of POR (points of reference). Usually, the file isoptd_por_public.csv, for which the latest version may be found in the OpenTravelData project on GitHub:https://github.com/opentraveldata/opentraveldata/tree/master/opentraveldataπ¦-d,--xapiandb <Xapian-travel-database-path>β path (directory) to the Xapian travel database. The indexer creates the Xapian database, or overwrites it when it already exists. It materialises as a collection of data files within a directory usually namedtraveldbπ₯-t,--sqldbtype <SQL-database-type>β SQL database type, e.g.,nosql(no SQL database),sqlite,mysqlπ-s,--sqldbconx <SQL-database-connection-string>β SQL database connection string, e.g.,~/tmp/opentrep/sqlite_travel.db(for SQLite3),"db=trep_trep user=trep password=trep"(for MySQL) π-l,--log <path-to-output-log-file>β path (absolute or relative) of the output log file π
See the output of the opentrep-dbmgr --help command for default options π.
Once the program is launched, just type the help command to get the full list of all the possible commands and their parameters. Note that that program features the auto-completion of commands β yes, βthat thatβ is in the source, and auto-completion is iconic β.
πΈ EXAMPLES πΈ
With SQLite3 π
opentrep-dbmgr -t sqlite -s /tmp/opentrep/sqlite_travel.db
With MySQL π
opentrep-dbmgr -t mysql -s "db=trep_trep user=trep password=trep"
π₯ SEE ALSO π₯
opentrep-indexer(1), opentrep-searcher(1), opentrep-config(1), opentrep-library(3) π¦
π SUPPORT π
Please report any bugs to http://github.com/trep/opentrep/issues π.
π COPYRIGHT π
Copyright Β© 2009-2019 Denis Arnaud π
See the COPYING file for more information on the (LGPLv2+) license, or directly on Internet: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
footer vibe check, bestie: the source/version is OpenTREP, Version 0.08.01 β and the footerβs date slot isnβt actually printed in this source page, so weβre not inventing one, periodt ππ
π¦ where this page comes from
- epel 10: opentrep 0.08.01-2.el10_3 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms