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 Oracle(BaseEntity): (source)
Represent Oracle database configuration for oracledb.
| Method | __post |
Validate Oracle database connection configuration after initialization. |
| Method | __validate |
Validate Oracle connection parameters. |
| Method | __validate |
Validate Oracle encoding parameters. |
| Method | __validate |
Validate the Oracle national encoding parameter. |
| Instance Variable | driver |
The database driver being used, typically 'oracle'. |
| Instance Variable | dsn |
Full DSN string, used if service_name/sid are not specified. |
| Instance Variable | encoding |
Character encoding for the connection. |
| Instance Variable | host |
Hostname or IP address of the Oracle server. |
| Instance Variable | nencoding |
National character encoding for the connection. |
| Instance Variable | password |
Password for the database connection. |
| Instance Variable | port |
Port number for the Oracle listener (default 1521). |
| Instance Variable | service |
Service name for connection using the SERVICE_NAME method. |
| Instance Variable | sid |
SID for connection using the SID method. |
| Instance Variable | tns |
TNS alias name defined in tnsnames.ora. |
| Instance Variable | username |
Username for the database connection. |
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 Oracle database connection configuration after initialization.
This method performs strict validation on the configuration fields required to establish an Oracle database connection. It ensures that all necessary parameters are present and correctly formatted, raising an appropriate exception if any validation fails.
| Parameters | |
self:Oracle | The Oracle configuration instance. |
| Returns | |
None | This method does not return a value. |
| Raises | |
ValueError | If any configuration parameter is invalid. |
TypeError | If any configuration parameter has an incorrect type. |
Validate Oracle connection parameters.
Validates host, port, service_name, and sid fields when DSN and TNS are not provided. Ensures all required fields are present and correctly formatted.
| Parameters | |
self:Oracle | The Oracle configuration instance. |
| Returns | |
None | This method does not return a value. |
| Raises | |
ValueError | If any configuration parameter is invalid. |
Validate Oracle encoding parameters.
Validates the encoding and nencoding fields to ensure they are valid
OracleEncoding and OracleNencoding values.
| Parameters | |
self:Oracle | The Oracle configuration instance. |
| Returns | |
None | This method does not return a value. |
| Raises | |
ValueError | If any encoding parameter is invalid. |
TypeError | If any encoding parameter has an incorrect type. |
Validate the Oracle national encoding parameter.
Validates the nencoding field to ensure it is a valid
OracleNencoding value.
| Parameters | |
self:Oracle | The Oracle configuration instance. |
| Returns | |
None | This method does not return a value. |
| Raises | |
ValueError | If the nencoding parameter is invalid. |
TypeError | If the nencoding parameter has an incorrect type. |