Safe Haskell | None |
---|---|
Language | Haskell98 |
- run :: (Expr query, Result r) => RethinkDBHandle -> query -> IO r
- run' :: Expr query => RethinkDBHandle -> query -> IO [JSON]
- class Result r where
- convertResult :: MVar Response -> IO r
- runOpts :: (Expr query, Result r) => RethinkDBHandle -> [RunOptions] -> query -> IO r
- data RunOptions
- data WriteResponse = WriteResponse {
- writeResponseInserted :: Int
- writeResponseDeleted :: Int
- writeResponseReplaced :: Int
- writeResponseUnchanged :: Int
- writeResponseSkipped :: Int
- writeResponseErrors :: Int
- writeResponseFirstError :: Maybe Text
- writeResponseGeneratedKeys :: Maybe [Text]
- writeResponseOldVal :: Maybe Value
- writeResponseNewVal :: Maybe Value
- data JSON = JSON Value
Documentation
run :: (Expr query, Result r) => RethinkDBHandle -> query -> IO r Source
Run a given query and return a Result
run' :: Expr query => RethinkDBHandle -> query -> IO [JSON] Source
Run a given query and return a JSON
Convert the raw query response into useful values
convertResult :: MVar Response -> IO r Source
runOpts :: (Expr query, Result r) => RethinkDBHandle -> [RunOptions] -> query -> IO r Source
Run a query with the given options
data WriteResponse Source