napkin-0.5.9
Copyright(c) Soostone Inc 2020
LicenseAllRightsReserved
Stabilityexperimental
PortabilityPOSIX
Safe HaskellNone
LanguageHaskell2010

Napkin.Run.Base

Description

 

Documentation

class ReifiesBackend b => Backend b where #

Associated Types

data BackendConn b #

Methods

backendQuery :: (Katip m, MonadQueryStats m, RenderSql q b) => BackendConn b -> q -> m [Map Text Value] #

backendExecute :: (Katip m, MonadQueryStats m, RenderSql q b) => BackendConn b -> q -> m () #

Instances

Instances details
Backend Sqlite # 
Instance details

Defined in Napkin.Run.Sqlite

Associated Types

data BackendConn Sqlite #

Backend Redshift # 
Instance details

Defined in Napkin.Run.Redshift

Associated Types

data BackendConn Redshift #

Backend Postgres # 
Instance details

Defined in Napkin.Run.Postgres

Associated Types

data BackendConn Postgres #

Backend BigQuery # 
Instance details

Defined in Napkin.Run.BigQuery

Associated Types

data BackendConn BigQuery #

class MonadBaseControl IO m => MonadQueryStats m where #

Instances

Instances details
MonadQueryStats IO # 
Instance details

Defined in Napkin.Run.Base

(MonadQueryStats m, Monad m) => MonadQueryStats (KatipT m) # 
Instance details

Defined in Napkin.Run.Base

(Monad m, MonadBaseControl IO (ComboT m)) => MonadQueryStats (ComboT m) # 
Instance details

Defined in Napkin.Spec.ComboTypes

(MonadQueryStats m, Monad m) => MonadQueryStats (StateT s m) # 
Instance details

Defined in Napkin.Run.Base

class Command command return backend | command backend -> return where #

Methods

execCommand :: (Katip m, MonadQueryStats m) => BackendConn backend -> command -> m return #

Instances

Instances details
Command Grant Int Sqlite # 
Instance details

Defined in Napkin.Run.Sqlite

Command Grant Int64 Redshift # 
Instance details

Defined in Napkin.Run.Redshift

Command Grant Int64 Postgres # 
Instance details

Defined in Napkin.Run.Postgres

Command Grant () BigQuery # 
Instance details

Defined in Napkin.Run.BigQuery

Command CheckTableExists Bool Sqlite # 
Instance details

Defined in Napkin.Run.Sqlite

Command CheckTableExists Bool Redshift # 
Instance details

Defined in Napkin.Run.Redshift

Command CheckTableExists Bool Postgres # 
Instance details

Defined in Napkin.Run.Postgres

Command CheckTableExists Bool BigQuery # 
Instance details

Defined in Napkin.Run.BigQuery

Command DeleteFrom Int Sqlite # 
Instance details

Defined in Napkin.Run.Sqlite

Command DeleteFrom Int64 Redshift # 
Instance details

Defined in Napkin.Run.Redshift

Command DeleteFrom Int64 Postgres # 
Instance details

Defined in Napkin.Run.Postgres

Command DeleteFrom Job BigQuery # 
Instance details

Defined in Napkin.Run.BigQuery

Command InsertIntoQuery Int Sqlite # 
Instance details

Defined in Napkin.Run.Sqlite

Command InsertIntoQuery Int64 Redshift # 
Instance details

Defined in Napkin.Run.Redshift

Command InsertIntoQuery Int64 Postgres # 
Instance details

Defined in Napkin.Run.Postgres

Command InsertIntoQuery Job BigQuery # 
Instance details

Defined in Napkin.Run.BigQuery

Command DropTable Int Sqlite # 
Instance details

Defined in Napkin.Run.Sqlite

Command DropTable Int64 Redshift # 
Instance details

Defined in Napkin.Run.Redshift

Command DropTable Int64 Postgres # 
Instance details

Defined in Napkin.Run.Postgres

Command DropTable () BigQuery # 
Instance details

Defined in Napkin.Run.BigQuery

Command DropView Int Sqlite # 
Instance details

Defined in Napkin.Run.Sqlite

Command DropView Int64 Redshift # 
Instance details

Defined in Napkin.Run.Redshift

Command DropView Int64 Postgres # 
Instance details

Defined in Napkin.Run.Postgres

Command DropView () BigQuery # 
Instance details

Defined in Napkin.Run.BigQuery

Command CreateViewAs Int Sqlite # 
Instance details

Defined in Napkin.Run.Sqlite

Command CreateViewAs Int64 Redshift # 
Instance details

Defined in Napkin.Run.Redshift

Command CreateViewAs Int64 Postgres # 
Instance details

Defined in Napkin.Run.Postgres

Command CreateViewAs Table BigQuery # 
Instance details

Defined in Napkin.Run.BigQuery

Command CopyTable Int Sqlite # 
Instance details

Defined in Napkin.Run.Sqlite

Command CopyTable Int64 Redshift # 
Instance details

Defined in Napkin.Run.Redshift

Command CopyTable Int64 Postgres # 
Instance details

Defined in Napkin.Run.Postgres

Command CopyTable () BigQuery # 
Instance details

Defined in Napkin.Run.BigQuery

Command RenameTable Int Sqlite # 
Instance details

Defined in Napkin.Run.Sqlite

Command RenameTable Int64 Redshift # 
Instance details

Defined in Napkin.Run.Redshift

Command RenameTable Int64 Postgres # 
Instance details

Defined in Napkin.Run.Postgres

Command RenameTable () BigQuery #

BQ implements rename via copy-then-drop

Instance details

Defined in Napkin.Run.BigQuery

Command GetRelationSchema (Fields Field) Sqlite # 
Instance details

Defined in Napkin.Run.Sqlite

Command GetRelationSchema (Fields Field) Redshift # 
Instance details

Defined in Napkin.Run.Redshift

Command GetRelationSchema (Fields Field) Postgres # 
Instance details

Defined in Napkin.Run.Postgres

Command GetRelationSchema (Fields Field) BigQuery # 
Instance details

Defined in Napkin.Run.BigQuery

Command (CreateTableAs ()) Int Sqlite # 
Instance details

Defined in Napkin.Run.Sqlite

Command (CreateTableAs ()) Int64 Redshift # 
Instance details

Defined in Napkin.Run.Redshift

Command (CreateTableAs ()) Int64 Postgres # 
Instance details

Defined in Napkin.Run.Postgres

Command (CreateTableAs ()) Job BigQuery # 
Instance details

Defined in Napkin.Run.BigQuery

Command (CreateTableAs TableMeta) Int64 Redshift # 
Instance details

Defined in Napkin.Run.Redshift

Command (CreateTableAs TableMeta) Job BigQuery # 
Instance details

Defined in Napkin.Run.BigQuery