# cpl_core.database.connection — Common Python Library documentation

# cpl_core.database.connection

## cpl_core.database.connection.database_connection

class cpl_core.database.connection.database_connection.DatabaseConnection

  Bases: `DatabaseConnectionABC`

  Representation of the database connection

  connect(database_settings: DatabaseSettings )

    Connects to a database by connection string

    > connection_string: `str`

    >   Database connection string, see: https://docs.sqlalchemy.org/en/14/core/engines.html

  property cursor: MySQLCursorBuffered
  property server: MySQLConnectionAbstract

## cpl_core.database.connection.database_connection_abc

class cpl_core.database.connection.database_connection_abc.DatabaseConnectionABC

  Bases: `ABC`

  ABC for the `cpl_core.database.connection.database_connection.DatabaseConnection`

  abstract connect(database_settings: DatabaseSettings )

    Connects to a database by connection string

    > connection_string: `str`

    >   Database connection string, see: https://docs.sqlalchemy.org/en/14/core/engines.html

  abstract property cursor: MySQLCursorBuffered
  abstract property server: MySQLConnectionAbstract