dql.expressions.update module

Update expressions

class dql.expressions.update.FieldValue(field, value)[source]

Bases: dql.expressions.base.Expression

A field-value pair used in an expression

build(visitor)[source]
classmethod from_clause(clause)[source]

Factory method

class dql.expressions.update.SetFunction(fn_name, value1, value2)[source]

Bases: dql.expressions.base.Expression

Expression fragment for a function used in a SET statement

e.g. if_not_exists(field, value)

build(visitor)[source]
classmethod from_clause(clause)[source]

Factory method

class dql.expressions.update.UpdateAdd(updates)[source]

Bases: dql.expressions.base.Expression

Expression fragment for an ADD statement

build(visitor)[source]
classmethod from_clause(clause)[source]

Factory method

class dql.expressions.update.UpdateDelete(updates)[source]

Bases: dql.expressions.base.Expression

Expression fragment for a DELETE statement

build(visitor)[source]
classmethod from_clause(clause)[source]

Factory method

class dql.expressions.update.UpdateExpression(expressions)[source]

Bases: dql.expressions.base.Expression

Entry point for Update expressions

build(visitor)[source]
classmethod from_update(update)[source]

Factory for creating an Update expression

class dql.expressions.update.UpdateRemove(fields)[source]

Bases: dql.expressions.base.Expression

Expression fragment for a REMOVE statement

build(visitor)[source]
classmethod from_clause(clause)[source]

Factory method

class dql.expressions.update.UpdateSetMany(updates)[source]

Bases: dql.expressions.base.Expression

Expression fragment for multiple set statements

build(visitor)[source]
classmethod from_clause(clause)[source]

Factory method

class dql.expressions.update.UpdateSetOne(field, value1, op=None, value2=None)[source]

Bases: dql.expressions.base.Expression

Expression fragment for a single SET statement

build(visitor)[source]
classmethod from_clause(clause)[source]

Factory method

dql.expressions.update.field_or_value(clause)[source]

For a clause that could be a field or value, create the right one and return it