### Navigation

- index
- modules |
- CCHR 1.0 documentation »

# `db`

`src.db.``create_db`(db, drop_db=True)

  Create an output relational database. Will drop existing database unless the drop_db parameter is set to False. @param db: Dictionary containing the database metadata including the database name and connection parameters. @param drop_db: If set to True will cause the database to be dropped if it already exists, default is True.

`src.db.``create_lookups`(db)

  Helper function to add lookup tables to a database. The lookup tables reside within a directory db_info[‘dir’], each table is stored as a file in the lookup directory with the filename being the name of the table.

`src.``db`

  alias of `src.db`

### Navigation

- index
- modules |
- CCHR 1.0 documentation »