kudubot.db.config.impl package

Submodules

kudubot.db.config.impl.MySqlConfig module

class kudubot.db.config.impl.MySqlConfig.MySqlConfig(address: str, port: str, name: str, user: str, password: str)

Bases: kudubot.db.config.DbConfig.DbConfig

Database configuration for MySQL

__init__(address: str, port: str, name: str, user: str, password: str)

Initializes the database configuration :param address: The database address :param port: The database port :param name: The database name :param user: The database user :param password: The database password

to_uri() → str

Turns the configuration into an URI that SQLAlchemy can use :return: The URI

kudubot.db.config.impl.SqlteConfig module

class kudubot.db.config.impl.SqlteConfig.SqliteConfig(path: str)

Bases: kudubot.db.config.DbConfig.DbConfig

Database configuration for SQLite

__init__(path: str)

Initializes the database configuration :param path: The path to the SQLite database file

to_uri() → str

Turns the configuration into an URI that SQLAlchemy can use :return: The URI

Module contents