# cpl_core.database package

## Subpackages

- cpl_core.database.connection package
  - Submodules
  - cpl_core.database.connection.database_connection module
  - cpl_core.database.connection.database_connection_abc module
  - Module contents
    - cpl-core CPL core
- cpl_core.database.context package
  - Submodules
  - cpl_core.database.context.database_context module
  - cpl_core.database.context.database_context_abc module
  - Module contents
    - cpl-core CPL core

## Submodules

## cpl_core.database.database_settings module

class cpl_core.database.database_settings.DatabaseSettings

  Bases: `ConfigurationModelABC`

  Represents settings for the database connection

  property auth_plugin: Optional[str]
  property buffered: Optional[bool]
  property charset: Optional[str]
  property database: Optional[str]
  from_dict(settings: dict)

    Sets attributes from given dict

    Parameter: settings: `dict`

  property host: Optional[str]
  property password: Optional[str]
  property port: Optional[int]
  property use_unicode: Optional[bool]
  property user: Optional[str]

## cpl_core.database.database_settings_name_enum module

class cpl_core.database.database_settings_name_enum.DatabaseSettingsNameEnum(value)

  Bases: `Enum`

  An enumeration.

  auth_plugin = 'AuthPlugin'
  buffered = 'Buffered'
  charset = 'Charset'
  database = 'Database'
  host = 'Host'
  password = 'Password'
  port = 'Port'
  use_unicode = 'UseUnicode'
  user = 'User'

## cpl_core.database.table_abc module

class cpl_core.database.table_abc.TableABC

  Bases: `ABC`

  property created_at: datetime
  abstract property delete_string: str
  abstract property insert_string: str
  property modified_at: datetime
  abstract property udpate_string: str

## Module contents

### cpl-core CPL core

CPL core package

copyright

  3. 2020 - 2023 sh-edraft.de

license

  MIT, see LICENSE for more details.

class cpl_core.database.VersionInfo(major, minor, micro)

  Bases: `tuple`

  major

    Alias for field number 0

  micro

    Alias for field number 2

  minor

    Alias for field number 1