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
class PGSQL(BaseEntity): (source)
Represent a PostgreSQL database configuration entity.
| Method | __post |
Validate and initialize the PostgreSQL configuration attributes. |
| Method | __validate |
Normalize the PostgreSQL charset option. |
| Method | __validate |
Normalize the PostgreSQL SSL mode option. |
| Instance Variable | charset |
Database charset. |
| Instance Variable | database |
Database name. |
| Instance Variable | driver |
Database driver type. |
| Instance Variable | host |
Database host. |
| Instance Variable | password |
Database password. |
| Instance Variable | port |
Database port. |
| Instance Variable | prefix |
Table prefix. |
| Instance Variable | prefix |
Whether to prefix indexes. |
| Instance Variable | search |
PostgreSQL schema search_path. |
| Instance Variable | sslmode |
Connection SSL mode. |
| Instance Variable | username |
Database user. |
Inherited from BaseEntity:
| Class Method | _cached |
Retrieve field definitions and normalized types cached by class. |
| Method | get |
Describe field names, normalized types, defaults, and metadata. |
| Method | to |
Convert the dataclass instance to a recursively copied dictionary. |
| Class Variable | __slots__ |
Undocumented |
Validate and initialize the PostgreSQL configuration attributes.
Validate scalar settings, normalize enum values, and preserve the configured port representation after range validation.
| Parameters | |
self:PGSQL | Configuration entity to validate and initialize. |
| Returns | |
None | This method validates and normalizes the entity in place. |
| Raises | |
ValueError | If a required attribute is missing or has an invalid value. |
TypeError | If an attribute has an invalid type. |