rethinkdb-1.8.0.5: RethinkDB driver for Haskell

Safe HaskellNone

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 -> ReQLSource

Build a term

type Backtrace = [Frame]Source

class Expr e whereSource

Convert other types into ReqL expressions

Methods

expr :: e -> ReQLSource

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 -> ReQLSource

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

num :: Double -> ReQLSource

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 

Instances

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

arr :: Arr a => a -> ArraySource

data Object Source

A list of key/value pairs

Constructors

Object 

Instances

class Obj o whereSource

Convert into a ReQL object

Methods

obj :: o -> ObjectSource

Instances

returnVals :: ReQL -> ReQLSource

Include the value of single write operations in the returned object

nonAtomic :: ReQL -> ReQLSource

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