rethinkdb-wereHamster-1.8.0.5: RethinkDB driver for Haskell

Safe HaskellNone
LanguageHaskell98

Database.RethinkDB.ReQL

Description

Building RQL queries in Haskell

Synopsis

Documentation

data ReQL Source

An RQL term

Constructors

ReQL 

Instances

Num ReQL 
Show ReQL 
IsString ReQL 
Expr ReQL 
((~) * a ReQL, (~) * b ReQL) => Expr (a -> b -> ReQL) 
(~) * a ReQL => Expr (a -> ReQL) 

op :: (Arr a, Obj o) => TermType -> a -> o -> ReQL Source

Build a term

type Backtrace = [Frame] Source

class Expr e where Source

Convert other types into ReqL expressions

Methods

expr :: e -> ReQL Source

Instances

Expr Bool 
Expr Double 
Expr Int 
Expr Int64 
Expr Integer 
Expr Rational 
Expr () 
Expr Text 
Expr UTCTime 
Expr Value 
Expr ZonedTime 
Expr Datum 
Expr Table 
Expr Database 
Expr Object 
Expr BaseReQL 
Expr ReQL 
Expr ZonedTime 
Expr UTCTime 
Expr a => Expr [a] 
Expr x => Expr (Vector x) 
((~) * a ReQL, (~) * b ReQL) => Expr (a -> b -> ReQL) 
(~) * a ReQL => Expr (a -> ReQL) 
(Expr a, Expr b) => Expr (a, b) 
Expr e => Expr (HashMap Text e) 
(Expr a, Expr b, Expr c) => Expr (a, b, c) 
(Expr a, Expr b, Expr c, Expr d) => Expr (a, b, c, d) 
(Expr a, Expr b, Expr c, Expr d, Expr e) => Expr (a, b, c, d, e) 

str :: String -> ReQL Source

A shortcut for inserting strings into ReQL expressions Useful when OverloadedStrings makes the type ambiguous

num :: Double -> ReQL Source

A shortcut for inserting numbers into ReQL expressions

data Attribute Source

A key/value pair used for building objects

Constructors

forall e . Expr e => Text := e infix 0 

Instances

cons :: Expr e => e -> Array -> Array Source

arr :: Arr a => a -> Array Source

data Object Source

A list of key/value pairs

Instances

class Obj o where Source

Convert into a ReQL object

Methods

obj :: o -> Object Source

Instances

returnVals :: ReQL -> ReQL Source

Include the value of single write operations in the returned object

nonAtomic :: ReQL -> ReQL Source

Allow non-atomic replace

data Bound a Source

An upper or lower bound for between and during

Constructors

Open

An inclusive bound

Fields

getBound :: a
 
Closed

An exclusive bound

Fields

getBound :: a