simpleml.utils.initialization module¶
Util module to initialize SimpleML and configure database management
-
class
simpleml.utils.initialization.
Database
(database='SimpleML', username='simpleml', password='simpleml', drivername='postgresql', host='localhost', port=5432, **kwargs)[source]¶ Bases:
sqlalchemy.engine.url.URL
Basic configuration to interact with database
-
alembic_config
¶
-
create_tables
(base, drop_tables=False, ignore_errors=False)[source]¶ Creates database tables (and potentially drops existing ones). Assumes to be running under a sufficiently privileged user
Parameters: drop_tables – Whether or not to drop the existing tables first. Returns: None
-
engine
¶
-