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 Interval(ColumnDefinition): (source)
Constructor: Interval(native, second_precision, day_precision)
A type for datetime.timedelta() objects.
def __init__(self, *, native:
bool = True, second_precision: int | None = None, day_precision: int | None = None):
(source)
¶
Construct an Interval object.
| Parameters | |
native:bool, optional | Whether to use the backend's native INTERVAL type, when supported (PostgreSQL, Oracle Database). |
secondint or None, optional | Fractional seconds precision for native interval types. |
dayint or None, optional | Day precision for native interval types. |
| Returns | |
None | This method does not return a value. |