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

class OracleZonedTimestamp(TypeDecorator[datetime]): (source)

View In Hierarchy

Bind and read Oracle TIMESTAMP WITH TIME ZONE values in UTC.

The driver binds Python datetimes without their offsets and returns timestamps without timezone metadata.

Method _bindExpression Attach the UTC offset explicitly to each bound Oracle timestamp.
Method _bindValue Normalize an input instant before the driver discards its offset.
Method _columnExpression Extract the UTC instant before the driver decodes an Oracle timestamp.
Method _readValue Restore the UTC metadata of a timestamp extracted by Oracle.
Class Variable cache_ok Allow SQLAlchemy to cache statements that use this stateless type.
Class Variable impl Declare the underlying Oracle timestamp type with timezone support.
def _bindExpression(self, bindvalue: BindParameter) -> ColumnElement: (source)

Attach the UTC offset explicitly to each bound Oracle timestamp.

Parameters
bindvalue:sqlalchemy.sql.elements.BindParameterUTC wall time passed to the timestamp driver variable.
Returns
sqlalchemy.sql.elements.ColumnElementOracle timestamp with its UTC offset and fractional seconds.
def _bindValue(self, value: datetime | None, _dialect: Dialect) -> datetime | None: (source)

Normalize an input instant before the driver discards its offset.

Parameters
value:datetime.datetime or NoneTimestamp to bind. Interpret naive inputs in the application zone.
_dialect:sqlalchemy.engine.DialectOracle dialect supplied by SQLAlchemy.
Returns
datetime.datetime or NoneUTC wall time, or None for SQL NULL.
def _columnExpression(self, column: ColumnElement) -> ColumnElement: (source)

Extract the UTC instant before the driver decodes an Oracle timestamp.

Parameters
column:sqlalchemy.sql.elements.ColumnElementZoned timestamp, including values stored with nonzero offsets.
Returns
sqlalchemy.sql.elements.ColumnElementUTC timestamp projection with the result processor attached.
def _readValue(self, value: datetime | None, _dialect: Dialect) -> datetime | None: (source)

Restore the UTC metadata of a timestamp extracted by Oracle.

Parameters
value:datetime.datetime or NoneUTC wall time returned by the driver.
_dialect:sqlalchemy.engine.DialectOracle dialect supplied by SQLAlchemy.
Returns
datetime.datetime or NoneAware UTC datetime, or None for SQL NULL.
cache_ok: bool = (source)

Allow SQLAlchemy to cache statements that use this stateless type.

Declare the underlying Oracle timestamp type with timezone support.