ORIONIS API REFERENCE

THE ORIONIS API

Build with clarity.

Explore the building blocks of an async-first Python framework. Every module, class, and method — connected, searchable, and ready to build with.

class documentation

Data class to represent the MySQL database configuration.

Method __post_init__ Validate connection settings and normalize MySQL options.
Method __validateCharset Validate and normalize the MySQL charset.
Method __validateCollation Validate and normalize the MySQL collation.
Method __validateEngine Validate and normalize the MySQL storage engine.
Instance Variable charset The charset used for the connection.
Instance Variable collation The collation for the database.
Instance Variable database The name of the MySQL database.
Instance Variable driver The database driver being used, e.g., 'mysql'.
Instance Variable engine The storage engine for the MySQL database (optional).
Instance Variable host The host address for the MySQL server.
Instance Variable password The password for the MySQL database.
Instance Variable port The port for connecting to the MySQL server.
Instance Variable prefix Prefix for table names.
Instance Variable prefix_indexes Whether to prefix index names.
Instance Variable strict Whether to enforce strict SQL mode.
Instance Variable unix_socket The path to the Unix socket for MySQL connections (optional).
Instance Variable username The username for connecting to the MySQL database.

Inherited from BaseEntity:

Class Method _cachedFieldMetadata Retrieve field definitions and normalized types cached by class.
Method getFields Describe field names, normalized types, defaults, and metadata.
Method toDict Convert the dataclass instance to a recursively copied dictionary.
Class Variable __slots__ Undocumented
def __post_init__(self): (source)

Validate connection settings and normalize MySQL options.

Parameters
self:MySQLInstance of the MySQL configuration entity.
Returns
NoneThis method validates the entity in place and returns no value.
Raises
TypeErrorIf a setting has an invalid type.
ValueErrorIf a setting has an invalid value.
def __validateCharset(self): (source)

Validate and normalize the MySQL charset.

Accept a non-empty string or a MySQLCharset member and store the corresponding canonical enum value.

Parameters
self:MySQLInstance of the MySQL configuration entity.
Returns
NoneThis method does not return a value.
Raises
TypeErrorIf charset is not a string or MySQLCharset enum.
ValueErrorIf charset is not a valid MySQLCharset option.
def __validateCollation(self): (source)

Validate and normalize the MySQL collation.

Accept a non-empty string or a MySQLCollation member and store the corresponding canonical enum value.

Parameters
self:MySQLInstance of the MySQL configuration entity.
Returns
NoneThis method does not return a value.
Raises
TypeErrorIf collation is not a string or MySQLCollation enum.
ValueErrorIf collation is not a valid MySQLCollation option.
def __validateEngine(self): (source)

Validate and normalize the MySQL storage engine.

Accept a string or MySQLEngine member and store the corresponding canonical enum value when an engine is configured.

Parameters
self:MySQLInstance of the MySQL configuration entity.
Returns
NoneThis method does not return a value.
Raises
TypeErrorIf engine is not a string or MySQLEngine enum.
ValueErrorIf engine is not a valid MySQLEngine option.

The charset used for the connection.

collation: str = (source)

The collation for the database.

database: str = (source)

The name of the MySQL database.

The database driver being used, e.g., 'mysql'.

engine: Optional[str] = (source)

The storage engine for the MySQL database (optional).

The host address for the MySQL server.

password: str = (source)

The password for the MySQL database.

The port for connecting to the MySQL server.

Prefix for table names.

prefix_indexes: bool = (source)

Whether to prefix index names.

Whether to enforce strict SQL mode.

unix_socket: str = (source)

The path to the Unix socket for MySQL connections (optional).

username: str = (source)

The username for connecting to the MySQL database.