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 Numeric(ColumnDefinition): (source)
Constructor: Numeric(precision, scale, decimal_return_scale, asdecimal)
Base for non-integer numeric types, such as NUMERIC/DECIMAL.
def __init__(self, precision:
int | None = None, scale: int | None = None, decimal_return_scale: int | None = None, *, asdecimal: bool = True):
(source)
¶
Construct a Numeric.
| Parameters | |
precision:int or None, optional | Numeric precision for use in DDL CREATE TABLE. |
scale:int or None, optional | Numeric scale for use in DDL CREATE TABLE. |
decimalint or None, optional | Default scale used when converting floats to decimals. |
asdecimal:bool, optional | Whether values are returned as decimal.Decimal objects. |
| Returns | |
None | This method does not return a value. |
| Raises | |
ValueError | If precision or scale are negative or inconsistent. |