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 MonadQueryStats m where #
updateTrackingQueryStats :: TrackingQueryStats -> m () #
updateTableQueryStats :: Ref Table -> StatsType -> QueryStats -> m () #
updateHookQueryStats :: QueryStats -> m () #
updateUnassociatedQueryStats :: QueryStats -> m () #
Instances
MonadQueryStats IO # | |
Defined in Napkin.Run.Base updateTrackingQueryStats :: TrackingQueryStats -> IO () # updateTableQueryStats :: Ref Table -> StatsType -> QueryStats -> IO () # updateHookQueryStats :: QueryStats -> IO () # updateUnassociatedQueryStats :: QueryStats -> IO () # | |
(MonadQueryStats m, Monad m) => MonadQueryStats (KatipT m) # | |
Defined in Napkin.Run.Base updateTrackingQueryStats :: TrackingQueryStats -> KatipT m () # updateTableQueryStats :: Ref Table -> StatsType -> QueryStats -> KatipT m () # updateHookQueryStats :: QueryStats -> KatipT m () # updateUnassociatedQueryStats :: QueryStats -> KatipT m () # | |
Monad m => MonadQueryStats (ComboT m) # | |
Defined in Napkin.Spec.ComboTypes updateTrackingQueryStats :: TrackingQueryStats -> ComboT m () # updateTableQueryStats :: Ref Table -> StatsType -> QueryStats -> ComboT m () # updateHookQueryStats :: QueryStats -> ComboT m () # updateUnassociatedQueryStats :: QueryStats -> ComboT m () # |
class Command command return backend | command backend -> return where #
execCommand :: (Katip m, MonadQueryStats m) => BackendConn backend -> command -> m return #
Instances
getTempTableName :: MonadIO m => m (Ref b) #