opentrep-dbmgr(1)

πŸ“¦
version 0.08.01 Β· 4 versions
, in epel 10

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 is optd_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 named traveldb πŸ”₯
  • -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 Β© 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