gargantext-0.0.4.9.5: Search, map, share
Copyright(c) CNRS 2017-Present
LicenseAGPL + CECILL v3
Maintainerteam@gargantext.org
Stabilityexperimental
PortabilityPOSIX
Safe HaskellNone
LanguageHaskell2010

Gargantext.Database.Prelude

Description

 
Synopsis

Documentation

type CmdM'' env err m = (MonadReader env m, MonadError err m, MonadBaseControl IO m, MonadRandom m) Source #

type CmdM' env err m = (MonadReader env m, MonadError err m, MonadBaseControl IO m) Source #

type CmdM env err m = (CmdM' env err m, HasConnectionPool env, HasConfig env, HasMail env) Source #

type CmdRandom env err m = (CmdM' env err m, HasConnectionPool env, HasConfig env, MonadRandom m, HasMail env) Source #

type Cmd'' env err a = forall m. CmdM'' env err m => m a Source #

type Cmd' env err a = forall m. CmdM' env err m => m a Source #

type Cmd err a = forall m env. CmdM env err m => m a Source #

type CmdR err a = forall m env. CmdRandom env err m => m a Source #

mkCmd :: (Connection -> IO a) -> Cmd err a Source #

runCmd :: HasConnectionPool env => env -> Cmd'' env err a -> IO (Either err a) Source #

runOpaQuery :: Default FromFields fields haskells => Select fields -> Cmd err [haskells] Source #

runPGSQuery' :: (ToRow a, FromRow b) => Query -> a -> Cmd err [b] Source #

runPGSQuery :: (CmdM env err m, FromRow r, ToRow q) => Query -> q -> m [r] Source #

runPGSQuery_ :: (CmdM env err m, FromRow r) => Query -> m [r] Source #

TODO catch error

execPGSQuery :: ToRow a => Query -> a -> Cmd err Int64 Source #