| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Napkin.Spec.ExecutionPlan
Synopsis
- data IntrmTblUpdSt
- type IntrmTblsUpdSt = Map (Ref Table) IntrmTblUpdSt
- data ForceTable
- type ForcedTablesMap = Map (Ref Table) ForceTable
- data ExecutionReason
- type TableExecutionReasonMap = Map (Ref Table) (Bool, ExecutionReason)
- onlyResolved :: IntrmTblUpdSt -> Maybe (Bool, ExecutionReason)
- tablesForUpdate :: forall m b. Monad m => UTCTime -> (Ref Table -> m Bool) -> SpecState -> ForcedTablesMap -> ValidatedInterpretedSpec b -> m (Set (Ref Table), TableExecutionReasonMap)
Documentation
data IntrmTblUpdSt #
Instances
| Eq IntrmTblUpdSt # | |
Defined in Napkin.Spec.ExecutionPlan Methods (==) :: IntrmTblUpdSt -> IntrmTblUpdSt -> Bool # (/=) :: IntrmTblUpdSt -> IntrmTblUpdSt -> Bool # | |
| Show IntrmTblUpdSt # | |
Defined in Napkin.Spec.ExecutionPlan Methods showsPrec :: Int -> IntrmTblUpdSt -> ShowS # show :: IntrmTblUpdSt -> String # showList :: [IntrmTblUpdSt] -> ShowS # | |
type IntrmTblsUpdSt = Map (Ref Table) IntrmTblUpdSt #
data ForceTable #
Instances
| Eq ForceTable # | |
Defined in Napkin.Spec.ExecutionPlan | |
| Show ForceTable # | |
Defined in Napkin.Spec.ExecutionPlan Methods showsPrec :: Int -> ForceTable -> ShowS # show :: ForceTable -> String # showList :: [ForceTable] -> ShowS # | |
type ForcedTablesMap = Map (Ref Table) ForceTable #
data ExecutionReason #
Constructors
| UpdateStrategy UpdateStrategy | |
| CliOverride ForceTable | |
| None |
Instances
| Eq ExecutionReason # | |
Defined in Napkin.Spec.ExecutionPlan Methods (==) :: ExecutionReason -> ExecutionReason -> Bool # (/=) :: ExecutionReason -> ExecutionReason -> Bool # | |
| Show ExecutionReason # | |
Defined in Napkin.Spec.ExecutionPlan Methods showsPrec :: Int -> ExecutionReason -> ShowS # show :: ExecutionReason -> String # showList :: [ExecutionReason] -> ShowS # | |
type TableExecutionReasonMap = Map (Ref Table) (Bool, ExecutionReason) #
onlyResolved :: IntrmTblUpdSt -> Maybe (Bool, ExecutionReason) #
tablesForUpdate :: forall m b. Monad m => UTCTime -> (Ref Table -> m Bool) -> SpecState -> ForcedTablesMap -> ValidatedInterpretedSpec b -> m (Set (Ref Table), TableExecutionReasonMap) #
tablesForUpdate discovers missing spec tables or containing old data
TODO: parallelize