io.db.connection — Database Connection

The io.db.connection module provides methods for connecting AutoCNet server a database.

New in version 0.1.0.

autocnet.io.db.connection.new_connection(dbconfig)[source]

Using the user supplied config create a NullPool database connection.

Returns

  • Session (object) – An SQLAlchemy session object

  • engine (object) – An SQLAlchemy engine object