| Copyright | (c) Eitan Chatav 2019 |
|---|---|
| Maintainer | eitan@morphism.tech |
| Stability | experimental |
| Safe Haskell | None |
| Language | Haskell2010 |
Squeal.PostgreSQL.Expression.Text
Contents
Description
text functions and operators
Text Function
lower :: null PGtext --> null PGtext Source #
>>>printSQL $ lower "ARRRGGG"lower((E'ARRRGGG' :: text))
charLength :: null PGtext --> null PGint4 Source #
>>>printSQL $ charLength "four"char_length((E'four' :: text))
like :: Operator (null PGtext) (null PGtext) (Null PGbool) Source #
The like expression returns true if the string matches
the supplied pattern. If pattern does not contain percent signs
or underscores, then the pattern only represents the string itself;
in that case like acts like the equals operator. An underscore (_)
in pattern stands for (matches) any single character; a percent sign (%)
matches any sequence of zero or more characters.
>>>printSQL $ "abc" `like` "a%"((E'abc' :: text) LIKE (E'a%' :: text))