dql.expressions.base module

Common utilities for all expressions

class dql.expressions.base.Expression[source]

Bases: object

Base class for all expressions and expression fragments

build(visitor)[source]

Build string expression, using the visitor to encode values

class dql.expressions.base.Field(field)[source]

Bases: dql.expressions.base.Expression

Wrapper for a field in an expression

build(visitor)[source]
evaluate(item)[source]

Pull the field off the item

class dql.expressions.base.Value(val)[source]

Bases: dql.expressions.base.Expression

Wrapper for a value in an expression

build(visitor)[source]
evaluate(item)[source]

Values evaluate to themselves regardless of the item