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

The SQL DECIMAL type.

Method __init__ Construct a fixed-point decimal declaration.
Class Variable __slots__ Declare that this class introduces no additional instance slots.
def __init__(self, precision: int | None = DEFAULT_DECIMAL_PRECISION, scale: int | None = DEFAULT_DECIMAL_SCALE, decimal_return_scale: int | None = None, *, asdecimal: bool = True): (source)

Construct a fixed-point decimal declaration.

Parameters
precision:int or None, optionalNumeric precision for DDL. Supply it together with scale, or leave both values as None.
scale:int or None, optionalNumeric scale for use in DDL CREATE TABLE.
decimal_return_scale:int or None, optionalDefault scale used when converting floats to decimals.
asdecimal:bool, optionalWhether values are returned as decimal.Decimal objects.
Returns
NoneThis method does not return a value.
Raises
ValueErrorIf the shape is incomplete, contains non-integers or booleans, or has non-positive precision or scale outside its range.
__slots__: tuple = (source)

Declare that this class introduces no additional instance slots.