| Copyright | (c) Soostone Inc 2020 |
|---|---|
| License | AllRightsReserved |
| Stability | experimental |
| Portability | POSIX |
| Safe Haskell | None |
| Language | Haskell2010 |
Napkin.Spec.Graph
Description
Synopsis
- data IncludeUnmanagedTables
- type TableSpecsAsDependencyGraph b = (ParseSQL b, ReifiesBackend b, MustacheBackend b, IsBackendTableMeta b, RunBackendEffect b)
- type SpecDeps = Map (Ref Table) (Set (Ref Table))
- allSpecsDeps :: (MonadIO m, TableSpecsAsDependencyGraph b) => RuntimeEnv -> RawInterpretedSpec b -> ExceptT (Ref Table, NapkinEffectError) m SpecDeps
- tableSpecsAsDependencyGraph :: Specs b -> IncludeUnmanagedTables -> SpecDeps -> SpecDepGraph
- unmanagedInputTables :: ValidatedInterpretedSpec b -> Set (Ref Table) -> Set (Ref Table)
- managedInputTables :: ValidatedInterpretedSpec b -> Set (Ref Table) -> Set (Ref Table)
- findCycles :: Specs b -> SpecDeps -> [[Ref Table]]
Documentation
data IncludeUnmanagedTables #
Constructors
| IncludeUnmanagedTables | |
| ExcludeUnmanagedTables |
Instances
| Eq IncludeUnmanagedTables # | |
Defined in Napkin.Spec.Graph Methods (==) :: IncludeUnmanagedTables -> IncludeUnmanagedTables -> Bool # (/=) :: IncludeUnmanagedTables -> IncludeUnmanagedTables -> Bool # | |
| Show IncludeUnmanagedTables # | |
Defined in Napkin.Spec.Graph Methods showsPrec :: Int -> IncludeUnmanagedTables -> ShowS # show :: IncludeUnmanagedTables -> String # showList :: [IncludeUnmanagedTables] -> ShowS # | |
type TableSpecsAsDependencyGraph b = (ParseSQL b, ReifiesBackend b, MustacheBackend b, IsBackendTableMeta b, RunBackendEffect b) #
allSpecsDeps :: (MonadIO m, TableSpecsAsDependencyGraph b) => RuntimeEnv -> RawInterpretedSpec b -> ExceptT (Ref Table, NapkinEffectError) m SpecDeps #
tableSpecsAsDependencyGraph :: Specs b -> IncludeUnmanagedTables -> SpecDeps -> SpecDepGraph #
unmanagedInputTables :: ValidatedInterpretedSpec b -> Set (Ref Table) -> Set (Ref Table) #
unmanaged tables that will be used as an input during this run
managedInputTables :: ValidatedInterpretedSpec b -> Set (Ref Table) -> Set (Ref Table) #
managed tables that will be used as an input during this run, but will not be updated