dbbase.DB.create_session¶
-
DB.
create_session
(checkfirst=True, echo=False, *args, **kwargs)[source]¶ This function instantiates an engine, and connects to the database. A session is initiated. Finally, any new tables are created.
- Default:
create_session(checkfirst=True, echo=False)
- Parameters
checkfirst – (bool) : If True, will not recreate a table that already exists.
echo – (bool : str) : logs interactions with engine to INFO. defaults to False. echo can also be “debug” for more detail.
- Returns
session (obj)