Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
This is an internal module. This module may have breaking changes without a corresponding major version bump. If you use this module, please open an issue with your use-case so we can safely support it.
Synopsis
- data TableAccess = TableAccess {}
- parseOnExpr :: SqlBackend -> Text -> Either String (Set TableAccess)
- mkEscapeChar :: SqlBackend -> Either String Char
- type ExprParser a = Char -> Parser a
- onExpr :: ExprParser (Set TableAccess)
- skipToEscape :: ExprParser ()
- parseEscapedIdentifier :: ExprParser [Char]
- parseTableAccess :: ExprParser TableAccess
- parseEscapedChars :: ExprParser [Char]
Documentation
data TableAccess Source #
A type representing the access of a table value. In Esqueleto, we get a guarantee that the access will look something like:
escape-char [character] escape-char . escape-char [character] escape-char ^^^^^^^^^^^ ^^^^^^^^^^^ table name column name
Instances
Show TableAccess Source # | |
Defined in Database.Esqueleto.Internal.ExprParser showsPrec :: Int -> TableAccess -> ShowS # show :: TableAccess -> String # showList :: [TableAccess] -> ShowS # | |
Eq TableAccess Source # | |
Defined in Database.Esqueleto.Internal.ExprParser (==) :: TableAccess -> TableAccess -> Bool # (/=) :: TableAccess -> TableAccess -> Bool # | |
Ord TableAccess Source # | |
Defined in Database.Esqueleto.Internal.ExprParser compare :: TableAccess -> TableAccess -> Ordering # (<) :: TableAccess -> TableAccess -> Bool # (<=) :: TableAccess -> TableAccess -> Bool # (>) :: TableAccess -> TableAccess -> Bool # (>=) :: TableAccess -> TableAccess -> Bool # max :: TableAccess -> TableAccess -> TableAccess # min :: TableAccess -> TableAccess -> TableAccess # |
parseOnExpr :: SqlBackend -> Text -> Either String (Set TableAccess) Source #
Parse a SqlExpr (Value Bool)
's textual representation into a list of
TableAccess
mkEscapeChar :: SqlBackend -> Either String Char Source #
This function uses the connEscapeName
function in the SqlBackend
with an
empty identifier to pull out an escape character. This implementation works
with postgresql, mysql, and sqlite backends.
type ExprParser a = Char -> Parser a Source #
onExpr :: ExprParser (Set TableAccess) Source #
skipToEscape :: ExprParser () Source #