Conditions

class networkdisk.sql.conditions.BinaryCondition(dialect)

A BinaryCondition is an abstract condition that involves two selected columns (instances of AbstractColumns), referred as left and right.

class networkdisk.sql.conditions.CompareCondition(dialect, left, right, operator='=', parameters=())

A CompareCondition is a binary condition (BinaryCondition) that compares the two columns left and right using an operator operator. These operators typically belong to (but are not limited to) the key set of the class attribute _operators. This dictionary defines the negation of each operator, if any. This allows flat-negation of instances of CompareCondition. An class instance that uses an operator which is not a key of the _operators dictionary, or which is associated with None in that dictionary, cannot be flat-negated. Its negation thus default to the instantiation of a ConditionNegation object.

class networkdisk.sql.conditions.ConditionObject(dialect)
class networkdisk.sql.conditions.ConjunctionCondition(dialect, *conditions)
class networkdisk.sql.conditions.DisjunctionCondition(dialect, *conditions)
class networkdisk.sql.conditions.EmptyCondition(dialect)
class networkdisk.sql.conditions.InQuerySetCondition(dialect, col, query, negate=False)

A variant of CompareCondition whose right column is replaced by a query. This condition expresses the left column value membership to the rows of the right query using the operator “IN”.

class networkdisk.sql.conditions.InValueSetCondition(dialect, left, *values, negate=False)
class networkdisk.sql.conditions.MultipleCondition(dialect, subconditions)

An abstract ConditionObject that involves an arbitrary number of sub-conditions, referred as subconditions.

class networkdisk.sql.conditions.NegationCondition(dialect, condition)