nat.plugins.mysql.object_store#

Classes#

MySQLObjectStoreClientConfig

Object store that stores objects in a MySQL database.

Functions#

mysql_object_store_client(config, _builder)

Module Contents#

class MySQLObjectStoreClientConfig(/, **data: Any)#

Bases: nat.data_models.object_store.ObjectStoreBaseConfig

Object store that stores objects in a MySQL database.

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

DEFAULT_HOST: ClassVar[str] = 'localhost'#
DEFAULT_PORT: ClassVar[int] = 3306#
HOST_ENV: ClassVar[str] = 'NAT_MYSQL_OBJECT_STORE_HOST'#
PORT_ENV: ClassVar[str] = 'NAT_MYSQL_OBJECT_STORE_PORT'#
USERNAME_ENV: ClassVar[str] = 'NAT_MYSQL_OBJECT_STORE_USERNAME'#
PASSWORD_ENV: ClassVar[str] = 'NAT_MYSQL_OBJECT_STORE_PASSWORD'#
bucket_name: str = None#
host: str = None#
port: int = None#
username: str | None = None#
password: str | None = None#
async mysql_object_store_client(
config: MySQLObjectStoreClientConfig,
_builder: nat.builder.builder.Builder,
)#