budosystems.storage.query

Query builder classes.

Module Attributes

ExpressionResult_co

Type variable for the final result of an evaluated Expression (covariant type).

ExpressionResult

Type variable for the final result of an evaluated Expression (invariant type).

Predicate

A combination of primitives and operators that evaluate to a boolean.

OperandType_contra

Type variable for the operands of an Operator.

OperationResult_co

Type variable for the result of an Operator.

AND

AND query operator.

OR

OR query operator.

XOR

XOR (Exclusive Or) query operator.

LE

LE (Less Than Or Equal) query operator.

LT

LT (Less Than) query operator.

GE

GE (Greater Than Or Equal) query operator.

GT

GT (Greater Than) query operator.

EQ

EQ (Equals) query operator.

NE

NE (Not Equals) query operator.

TRUE

TRUE query literal.

FALSE

FALSE query literal.

NONE

NONE query literal.

Classes

BooleanOperationExpression

Bridge class

BooleanOperator

Once evaluated, instances of this operator will return the truth value of all it's boolean operands combined by the same operator.

ClosedOperationExpression

Evaluable operator_func expression which give results of the same type as it's operands

Comparable

Any object that supports comparison operators.

ComparableExpression

Type of expression that results in a concrete type that supports comparisons.

ComparisonOperationExpression

Evaluable comparison operator_func.

ComparisonOperator

Once evaluated, instances of this operator will return the truth value of all it's operands when compared to one another in the order they were given by the same comparator.

EntityType

An entity in the query language.

Expression

A combination of primitives and operators that evaluate to a concrete type.

Field

A field in the query language.

LiteralExpression

A simple concrete value expression representing a literal.

OpSignature

Callback protocol for the signature of the function tha will evaluate the Operator.

OperationExpression

Evaluable operator_func expression.

Operator

An operator_func that combines components to evaluate to some value during the query.

Query

Root class of a query.

VariableExpression

A generic variable in the query language.

class ExpressionResult_co

Type variable for the final result of an evaluated Expression (covariant type).

alias of TypeVar(‘ExpressionResult_co’, covariant=True)

class ExpressionResult

Type variable for the final result of an evaluated Expression (invariant type).

alias of TypeVar(‘ExpressionResult’)

Predicate

A combination of primitives and operators that evaluate to a boolean.

alias of Expression[bool]

class OperandType_contra

Type variable for the operands of an Operator.

alias of TypeVar(‘OperandType_contra’, contravariant=True)

class OperationResult_co

Type variable for the result of an Operator.

alias of TypeVar(‘OperationResult_co’, covariant=True)

AND = <budosystems.storage.query.BooleanOperator object>

AND query operator.

OR = <budosystems.storage.query.BooleanOperator object>

OR query operator.

XOR = <budosystems.storage.query.BooleanOperator object>

XOR (Exclusive Or) query operator.

LE = <budosystems.storage.query.ComparisonOperator object>

LE (Less Than Or Equal) query operator.

LT = <budosystems.storage.query.ComparisonOperator object>

LT (Less Than) query operator.

GE = <budosystems.storage.query.ComparisonOperator object>

GE (Greater Than Or Equal) query operator.

GT = <budosystems.storage.query.ComparisonOperator object>

GT (Greater Than) query operator.

EQ = <budosystems.storage.query.ComparisonOperator object>

EQ (Equals) query operator.

NE = <budosystems.storage.query.ComparisonOperator object>

NE (Not Equals) query operator.

TRUE = <budosystems.storage.query.LiteralExpression object>

TRUE query literal.

FALSE = <budosystems.storage.query.LiteralExpression object>

FALSE query literal.

NONE = <budosystems.storage.query.LiteralExpression object>

NONE query literal.