rotifer.db.cli.sql#
- class rotifer.db.cli.sql[source]#
Bases:
objectArgument parser builder for SQL database connection options.
The available options are
--database,--port,--hostand--user, with defaults matching the laboratory’s internal PostgreSQL server.- input(number=1, exclude=[], input_order=['database', 'port', 'host', 'user'], add_help=False)[source]#
Build an argument parser with the connection options.
- Parameters:
- numberint, default 1
Unused, kept for interface compatibility.
- excludelist of str, default []
Option names to leave out of the parser.
- input_orderlist of str, default
['database', 'port', 'host', 'user'] Options to add, in order.
- add_helpbool, default False
Whether the parser defines its own
--helpoption.
- Returns:
- argparse.ArgumentParser
The configured parser.