Safe Haskell | None |
---|
Building RQL queries in Haskell
- data ReQL = ReQL {
- runReQL :: State QuerySettings Term
- op :: Arr a => TermType -> a -> ReQL
- op' :: Arr a => TermType -> a -> [Attribute Static] -> ReQL
- data Term
- data TermAttribute = TermAttribute Text Term
- buildQuery :: ReQL -> Int64 -> Database -> [(Text, Datum)] -> (WireQuery, Term)
- type Backtrace = [Frame]
- convertBacktrace :: WireBacktrace -> Backtrace
- data Frame
- class Expr e where
- data QuerySettings = QuerySettings {}
- newVarId :: State QuerySettings Int
- str :: String -> ReQL
- num :: Double -> ReQL
- data Attribute a where
- data Static
- data Dynamic
- type OptArg = Attribute Static
- class OptArgs a where
- cons :: Expr e => e -> ArgList -> ArgList
- arr :: Arr a => a -> ArgList
- baseArray :: ArgList -> State QuerySettings [Term]
- withQuerySettings :: (QuerySettings -> ReQL) -> ReQL
- reqlToDatum :: ReQL -> Datum
- data Bound a
- closedOrOpen :: Bound a -> Maybe Text
- datumTerm :: ToDatum a => a -> ReQL
- empty :: ReQL
- newtype WireQuery = WireQuery {}
- newtype WireBacktrace = WireBacktrace {}
- note :: String -> ReQL -> ReQL
- (?:=) :: Expr e => Text -> Maybe e -> Attribute a
Documentation
data Term
Internal representation of a ReQL Term
Term | |
| |
Datum | |
Note | |
class Expr e where
Convert other types into ReQL expressions
newVarId :: State QuerySettings Int
A shortcut for inserting strings into ReQL expressions Useful when OverloadedStrings makes the type ambiguous
data Attribute a where
A key/value pair used for building objects
data Static
data Dynamic
class OptArgs a where
An operation that accepts optional arguments
arr :: Arr a => a -> ArgList
baseArray :: ArgList -> State QuerySettings [Term]
withQuerySettings :: (QuerySettings -> ReQL) -> ReQL
reqlToDatum :: ReQL -> Datum
data Bound a
An upper or lower bound for between and during
closedOrOpen :: Bound a -> Maybe Text
newtype WireBacktrace