StringExpressionOperators extension
Defines methods that operate on a column storing String values.
- on
Properties
-
length
→ Expression<
int?> -
Available on Expression<
Calls the sqlite functionString?> , provided by the StringExpressionOperators extensionLENGTHonthisstring, which counts the number of characters in this string. Note that, in most sqlite installations, length may not support all unicode rules.no setter
Methods
-
collate(
Collate collate) → Expression< String> -
Available on Expression<
Uses the givenString?> , provided by the StringExpressionOperators extensioncollatesequence when comparing this column to other values. -
contains(
String substring) → Expression< bool?> -
Available on Expression<
Whether this expression containsString?> , provided by the StringExpressionOperators extensionsubstring. -
like(
String regex) → Expression< bool?> -
Available on Expression<
Whether this column matches the given pattern. For details on what patters are valid and how they are interpreted, check out this tutorial.String?> , provided by the StringExpressionOperators extension -
lower(
) → Expression< String?> -
Available on Expression<
Calls the sqlite functionString?> , provided by the StringExpressionOperators extensionLOWERonthisstring. Please note that, in most sqlite installations, this only affects ascii chars. -
regexp(
String regex, {bool multiLine = false, bool caseSensitive = true, bool unicode = false, bool dotAll = false}) → Expression< bool?> -
Available on Expression<
Matches this string against the regular expression inString?> , provided by the StringExpressionOperators extensionregex. -
trim(
) → Expression< String?> -
Available on Expression<
Removes spaces from both ends of this string.String?> , provided by the StringExpressionOperators extension -
trimLeft(
) → Expression< String?> -
Available on Expression<
Removes spaces from the beginning of this string.String?> , provided by the StringExpressionOperators extension -
trimRight(
) → Expression< String?> -
Available on Expression<
Removes spaces from the end of this string.String?> , provided by the StringExpressionOperators extension -
upper(
) → Expression< String?> -
Available on Expression<
Calls the sqlite functionString?> , provided by the StringExpressionOperators extensionUPPERonthisstring. Please note that, in most sqlite installations, this only affects ascii chars.
Operators
-
operator +(
Expression< String?> other) → Expression<String> -
Available on Expression<
Performs a string concatenation in sql by appendingString?> , provided by the StringExpressionOperators extensionothertothis.