napkin-1.0.0
Safe HaskellNone
LanguageGHC2021

Napkin.Spec.Persist

Synopsis

Documentation

data History #

Constructors

History 

Instances

Instances details
Generic History # 
Instance details

Defined in Napkin.Spec.Persist

Associated Types

type Rep History 
Instance details

Defined in Napkin.Spec.Persist

type Rep History = D1 ('MetaData "History" "Napkin.Spec.Persist" "napkin-1.0.0-5YkWAC9Wc776PT0LDghaFb" 'False) (C1 ('MetaCons "History" 'PrefixI 'True) (S1 ('MetaSel ('Just "lastCompletedRun") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SpecState) :*: S1 ('MetaSel ('Just "lastRun") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SpecState)))

Methods

from :: History -> Rep History x #

to :: Rep History x -> History #

Default History # 
Instance details

Defined in Napkin.Spec.Persist

Methods

def :: History #

type Rep History # 
Instance details

Defined in Napkin.Spec.Persist

type Rep History = D1 ('MetaData "History" "Napkin.Spec.Persist" "napkin-1.0.0-5YkWAC9Wc776PT0LDghaFb" 'False) (C1 ('MetaCons "History" 'PrefixI 'True) (S1 ('MetaSel ('Just "lastCompletedRun") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SpecState) :*: S1 ('MetaSel ('Just "lastRun") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SpecState)))

recordedRunDAG :: (HasBackendQueryStats bk, Typeable bk, ToDbBackend bk) => Task (Executable bk) -> MetadataBeamConnection -> AppName -> Pipeline -> SpecRunId -> SimpleLogPayload -> DepChain -> Combo bk (TaskResult bk) -> Combo bk (Either SomeException (NominalDiffTime, TaskResult bk)) #

Do a run, recording the instance in the database. Return the recorded instance along with the run results.

recordedRun :: (HasBackendQueryStats bk, Typeable bk, ToDbBackend bk) => MetadataBeamConnection -> AppName -> Pipeline -> SpecRunId -> SpecTableName -> Specs bk -> DepChain -> Combo bk (a, CreateQueryStats bk, Maybe (HookQueryStats bk)) -> Combo bk (Either SomeException (a, (NominalDiffTime, CreateQueryStats bk, Maybe (HookQueryStats bk)))) #

Do a run, recording the instance in the database. Return the recorded instance along with the run results.