bluesearch.entrypoint.database.init module

Initialization of the database.

init_parser(parser: argparse.ArgumentParser) argparse.ArgumentParser[source]

Initialise the argument parser for the init subcommand.

Parameters

parser – The argument parser to initialise.

Returns

The initialised argument parser. The same object as the parser argument.

Return type

argparse.ArgumentParser

run(*, db_url: str, db_type: str) int[source]

Initialize database.

Parameter description and potential defaults are documented inside of the get_parser function.