QueryBuilder¶
-
class
pysnow.query_builder.QueryBuilder[source]¶ Query builder - for constructing advanced ServiceNow queries
-
starts_with(starts_with)[source]¶ Adds new
STARTSWITHconditionParameters: starts_with – Match field starting with the provided value
-
ends_with(ends_with)[source]¶ Adds new
ENDSWITHconditionParameters: ends_with – Match field ending with the provided value
-
contains(contains)[source]¶ Adds new
LIKEconditionParameters: contains – Match field containing the provided value
-
not_contains(not_contains)[source]¶ Adds new
NOTLIKEconditionParameters: not_contains – Match field not containing the provided value
-
equals(data)[source]¶ Adds new
INor=condition depending on if a list or string was providedParameters: data – string or list of values
Raise: - QueryTypeError: if
datais of an unexpected type
- QueryTypeError: if
-
not_equals(data)[source]¶ Adds new
NOT INor=condition depending on if a list or string was providedParameters: data – string or list of values
Raise: - QueryTypeError: if
datais of an unexpected type
- QueryTypeError: if
-
greater_than(greater_than)[source]¶ Adds new
>conditionParameters: greater_than – str or datetime compatible object
Raise: - QueryTypeError: if
greater_thanis of an unexpected type
- QueryTypeError: if
-
less_than(less_than)[source]¶ Adds new
<conditionParameters: less_than – str or datetime compatible object
Raise: - QueryTypeError: if
less_thanis of an unexpected type
- QueryTypeError: if
-