ferc_xbrl_extractor.helpers
¶
Helper functions.
Module Contents¶
Functions¶
|
Drops all tables from a SQLite database. |
|
Helper function to append 'catalystcoop' to logger name and return logger. |
- ferc_xbrl_extractor.helpers.drop_tables(engine: sqlalchemy.engine.Engine)[source]¶
Drops all tables from a SQLite database.
Creates an sa.schema.MetaData object reflecting the structure of the database that the passed in
engine
refers to, and uses that schema to drop all existing tables.- Parameters:
engine – An SQL Alchemy SQLite database Engine pointing at an exising SQLite database to be deleted.
- Returns:
None
- ferc_xbrl_extractor.helpers.get_logger(name: str) logging.Logger [source]¶
Helper function to append ‘catalystcoop’ to logger name and return logger.