QueryBuilder¶
-
class
pysnow.query_builder.
QueryBuilder
[source]¶ Query builder - for constructing advanced ServiceNow queries
-
starts_with
(starts_with)[source]¶ Adds new
STARTSWITH
conditionParameters: starts_with – Match field starting with the provided value
-
ends_with
(ends_with)[source]¶ Adds new
ENDSWITH
conditionParameters: ends_with – Match field ending with the provided value
-
contains
(contains)[source]¶ Adds new
LIKE
conditionParameters: contains – Match field containing the provided value
-
not_contains
(not_contains)[source]¶ Adds new
NOTLIKE
conditionParameters: not_contains – Match field not containing the provided value
-
equals
(data)[source]¶ Adds new
IN
or=
condition depending on if a list or string was providedParameters: data – string or list of values
Raise: - QueryTypeError: if
data
is of an unexpected type
- QueryTypeError: if
-
not_equals
(data)[source]¶ Adds new
NOT IN
or=
condition depending on if a list or string was providedParameters: data – string or list of values
Raise: - QueryTypeError: if
data
is 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_than
is 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_than
is of an unexpected type
- QueryTypeError: if
-