napkin-0.5.14
Copyright(c) Soostone Inc 2020
LicenseAllRightsReserved
Stabilityexperimental
PortabilityPOSIX
Safe HaskellSafe-Inferred
LanguageGHC2021

Napkin.Spec.ComboTypes

Description

 
Synopsis

Documentation

data RuntimeEventType backend #

Maintains some basic, human-reportable state over the run of the Spec in order to show progress.

Constructors

RuntimeEventStart

generated when a Spec starts to run

RuntimeEventDone (CreateQueryStats backend) (Maybe (HookQueryStats backend))

generated when a Spec successfully completes

RuntimeEventFailed String

generated when a Spec throws an error

RuntimeEventSkipped

generated when a Spec update is skipped

Instances

Instances details
Show (QueryStats backend) => Show (RuntimeEventType backend) # 
Instance details

Defined in Napkin.Spec.ComboTypes

Methods

showsPrec :: Int -> RuntimeEventType backend -> ShowS #

show :: RuntimeEventType backend -> String #

showList :: [RuntimeEventType backend] -> ShowS #

Eq (QueryStats backend) => Eq (RuntimeEventType backend) # 
Instance details

Defined in Napkin.Spec.ComboTypes

Methods

(==) :: RuntimeEventType backend -> RuntimeEventType backend -> Bool #

(/=) :: RuntimeEventType backend -> RuntimeEventType backend -> Bool #

data EventSource #

Instances

Instances details
Show EventSource # 
Instance details

Defined in Napkin.Spec.ComboTypes

Eq EventSource # 
Instance details

Defined in Napkin.Spec.ComboTypes

data RuntimeEvent backend #

Constructors

RuntimeEvent EventSource (RuntimeEventType backend) 
RuntimeEventSkipMany [EventSource]

bulk event updater since napkin is often run with many tables skipped

RuntimeEventComplete (QueryStats backend)

generated when napkin is done running

RuntimeEventFatal

generated from the napkin backend for fatal events (such as failed validation)

Instances

Instances details
Show (QueryStats backend) => Show (RuntimeEvent backend) # 
Instance details

Defined in Napkin.Spec.ComboTypes

Methods

showsPrec :: Int -> RuntimeEvent backend -> ShowS #

show :: RuntimeEvent backend -> String #

showList :: [RuntimeEvent backend] -> ShowS #

Eq (QueryStats backend) => Eq (RuntimeEvent backend) # 
Instance details

Defined in Napkin.Spec.ComboTypes

Methods

(==) :: RuntimeEvent backend -> RuntimeEvent backend -> Bool #

(/=) :: RuntimeEvent backend -> RuntimeEvent backend -> Bool #

type RuntimeEventQueue backend = TBQueue (RuntimeEvent backend) #

data ComboEnv backend #

Instances

Instances details
HasAppConfig (ComboEnv backend) # 
Instance details

Defined in Napkin.Spec.ComboTypes

type ComboT backend m = ReaderT (ComboEnv backend) (KatipT m) #

type Combo bk = ComboT bk IO #

ceLog :: forall k (backend :: k). Lens' (ComboEnv (backend :: k)) LogEnv #

ceEventQueue :: forall k (backend :: k) k (backend :: k). Lens (ComboEnv (backend :: k)) (ComboEnv (backend :: k)) (Maybe (RuntimeEventQueue backend)) (Maybe (RuntimeEventQueue backend)) #

ceAppConfig :: forall k (backend :: k). Lens' (ComboEnv (backend :: k)) AppConfig #

Orphan instances

MonadFix m => MonadFix (KatipT m) # 
Instance details

Methods

mfix :: (a -> KatipT m a) -> KatipT m a #