Safe Haskell | None |
---|---|
Language | Haskell98 |
Database.RethinkDB.ReQL
Description
Building RQL queries in Haskell
- data ReQL = ReQL {}
- 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
A ReQL Term
Constructors
ReQL | |
Fields |
Internal representation of a ReQL Term
Constructors
Term | |
Fields
| |
Datum | |
Note | |
Convert other types into ReQL expressions
Minimal complete definition
Nothing
Instances
data QuerySettings Source
State used to build a Term
Constructors
QuerySettings | |
Fields |
Instances
Default QuerySettings |
A shortcut for inserting strings into ReQL expressions Useful when OverloadedStrings makes the type ambiguous
A key/value pair used for building objects
An operation that accepts optional arguments
baseArray :: ArgList -> State QuerySettings [Term] Source
withQuerySettings :: (QuerySettings -> ReQL) -> ReQL Source
reqlToDatum :: ReQL -> Datum Source
An upper or lower bound for between and during
closedOrOpen :: Bound a -> Maybe Text Source
newtype WireBacktrace Source
Constructors
WireBacktrace | |
Fields |