stubber.publish.database ======================== .. py:module:: stubber.publish.database .. autoapi-nested-parse:: Interface to the database which stores the package information Functions --------- .. autoapisummary:: stubber.publish.database.get_database stubber.publish.database.create_database Module Contents --------------- .. py:function:: get_database(db_path: pathlib.Path, production: bool = False) -> sqlite3.Connection Open the sqlite database at the given path. The database should be located in a subfolder `/data` of the root path. The database name is determined by the production flag as `all_packages[_test].db` .. py:function:: create_database(db_path: pathlib.Path) -> sqlite3.Connection Create a new database at the given path. The database should be located in a subfolder `/data` of the root path.