orcalib.orca_expr#
This module contains classes used for generating SQL expressions in Orca for filtering and sorting data.
Note
This module is not intended to be used directly. Instead, it is used in the TableHandle class to generate SQL expressions.
Operable
#
OrcaExpr
#
ColumnHandle
#
Bases: Operable
Handle for a column in a table.
Parameters:
-
db_name
(str
) –Name of the database
-
table_name
(str
) –Name of the table
-
column_name
(str
) –Name of the column
ASC
property
#
Return a tuple of the column name and the ascending order. This can be used with
TableHandle.order_by
to sort this column in ascending order
DESC
property
#
Return a tuple of the column name and the descending order. This can be used with
TableHandle.order_by
to sort this column in descending order