string
ConcatenateOperator ¶
Bases: BinaryPQLOperator
Concatenate operator that concatenates the left operand with the right operand.
Applies CONCAT operator to column.
LengthOperator ¶
LowerOperator ¶
Bases: UnaryPQLOperator
Lower operator that returns string in lower case.
Applies LOWER operator to column.
UpperOperator ¶
Bases: UnaryPQLOperator
Upper operator that returns string in upper case.
Applies UPPER operator to column.
LStripOperator ¶
Bases: UnaryPQLOperator
LStrip operator that returns the string with leading whitespace removed.
Applies LTRIM operator to column.
RStripOperator ¶
Bases: UnaryPQLOperator
RStrip operator that returns the string with trailing whitespace removed.
Applies RTRIM operator to column.
StripOperator ¶
Bases: UnaryPQLOperator
Strip operator that returns the string with leading and trailing whitespace removed.
Applies RTRIM operator and LTRIM operator to column.
ReplaceOperator ¶
Bases: UnaryPQLOperator
Replace operator that replaces the given string with the given value.
Applies REPLACE operator to column.
Parameters:
-
operand
(Union[ScalarValue, PQLOperator]
) –Operand on which replace method is applied.
-
to_replace
(Union[ScalarValue, PQLOperator]
) –String to replace.
-
value
(Union[ScalarValue, PQLOperator]
) –Value to use as replacement.
SubstringOperator ¶
Bases: UnaryPQLOperator
Substring operator that returns substring.
Applies SUBSTRING operator to column.
Parameters:
-
operand
(Union[ScalarValue, PQLOperator]
) –Operand of which substring is taken.
-
start
(Optional[int]
, default:None
) –Start of substring.
-
stop
(Optional[int]
, default:None
) –End of substring.
StringIndexOperator ¶
Bases: UnaryPQLOperator
String index operator that returns character at given index.
Applies SUBSTRING operator to column.
Parameters:
-
operand
(Union[ScalarValue, PQLOperator]
) –Operand of which substring is taken.
-
index
(int
) –Index of character to extract.
StartsWithOperator ¶
Bases: UnaryPQLOperator
StartsWith operator that returns whether string starts with given pattern.
Applies LIKE operator to column.
Parameters:
-
operand
(Union[ScalarValue, PQLOperator]
) –Operand of which substring is taken.
-
pattern
(str
) –Pattern for which is searched.
EndsWithOperator ¶
Bases: UnaryPQLOperator
EndsWith operator that returns whether string ends with given pattern.
Applies LIKE operator to column.
Parameters:
-
operand
(Union[ScalarValue, PQLOperator]
) –Operand of which substring is taken.
-
pattern
(str
) –Pattern for which is searched.
ContainsOperator ¶
Bases: UnaryPQLOperator
Contains operator that returns whether string contains given pattern.
Applies LIKE operator to column.
Parameters:
-
operand
(Union[ScalarValue, PQLOperator]
) –Operand of which substring is taken.
-
pattern
(str
) –Pattern for which is searched.