luminadb.signature module

Signature

class luminadb.signature.Signature[source]

Bases: object

This class is used at most filter parameters at Table class.

You can use variable op (operator) to do all conditional logic or operator. There are ==, <=, <, !=, >, and >=

.negate() adds β€˜not’ to the operator, so from == would equal to != when used with .negate()

.like() only search for alike characters. Please refer to sqlite like command.

.between() is a ranging operator, there’s low and high value.

Example of everything:
>>> op == 5
>>> op <= 2
>>> op < 2
>>> op != 5
>>> op > 7
>>> op >= 7
>>> op.like('Ar%')
>>> op.like('Ar_')
>>>op.between(1, 10)

You can now use function from :operators:

between(low: int, high: int)[source]

Betweeen

property data
generate()[source]

Generate operator string

in_(values: list[Any])[source]

IN

property is_between

Is operator between

property is_in

Is operator in?

property is_like

Is operator like

property kind_sign

Signature kind

like(str_condition: str)[source]

Like

negate()[source]

Negate or adding NOT

property negated

Is negated

property normal_operator

Is it normal?

property value