bluesearch.entrypoint.database.add module

Adding articles to the database.

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

Initialise the argument parser for the add 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, parsed_path: pathlib.Path, db_type: str) int[source]

Add an entry to the database.

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