Copyright | (c) Soostone Inc 2020 |
---|---|
License | AllRightsReserved |
Stability | experimental |
Portability | POSIX |
Safe Haskell | None |
Language | Haskell2010 |
Documentation
class ReifiesBackend b => Backend b where #
data BackendConn b #
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
class MonadBaseControl IO m => MonadQueryStats m where #
updateTrackingQueryStats :: TrackingQueryStats -> m () #
updateTableQueryStats :: Ref Table -> StatsType -> QueryStats -> m () #
updateHookQueryStats :: QueryStats -> m () #
updateUnassociatedQueryStats :: QueryStats -> m () #
Instances
class Command command return backend | backend command -> return where #
execCommand :: (Katip m, MonadQueryStats m) => BackendConn backend -> command -> m return #
Instances
getTempTableName :: MonadIO m => m (Ref b) #
class (Eq (BackendSchemaField bk), Show (BackendSchemaField bk)) => HasBackendSchemaField bk where #
data BackendSchemaField bk #
fieldName :: BackendSchemaField bk -> Text #
fieldType :: BackendSchemaField bk -> Type #
Instances
HasBackendSchemaField Sqlite # | |
Defined in Napkin.Run.Sqlite data BackendSchemaField Sqlite # fieldName :: BackendSchemaField Sqlite -> Text # fieldType :: BackendSchemaField Sqlite -> Type # | |
HasBackendSchemaField Redshift # | |
Defined in Napkin.Run.Redshift data BackendSchemaField Redshift # fieldName :: BackendSchemaField Redshift -> Text # fieldType :: BackendSchemaField Redshift -> Type # | |
HasBackendSchemaField Postgres # | |
Defined in Napkin.Run.Postgres data BackendSchemaField Postgres # fieldName :: BackendSchemaField Postgres -> Text # fieldType :: BackendSchemaField Postgres -> Type # | |
HasBackendSchemaField BigQuery # | |
Defined in Napkin.Run.BigQuery data BackendSchemaField BigQuery # fieldName :: BackendSchemaField BigQuery -> Text # fieldType :: BackendSchemaField BigQuery -> Type # |