| Copyright | (c) Soostone Inc 2020 |
|---|---|
| License | AllRightsReserved |
| Stability | experimental |
| Portability | POSIX |
| Safe Haskell | None |
| Language | GHC2024 |
Napkin.Spec.DumpDAG
Description
dump Specs as dot or SQL files
Documentation
type OutputDirectory = FilePath #
data DumpNameMode #
Constructors
| UseSpecNames | |
| UseDbNames |
Instances
| Show DumpNameMode # | |
Defined in Napkin.Spec.DumpDAG Methods showsPrec :: Int -> DumpNameMode -> ShowS # show :: DumpNameMode -> String # showList :: [DumpNameMode] -> ShowS # | |
| Eq DumpNameMode # | |
Defined in Napkin.Spec.DumpDAG | |
type DumpSpec b = (MustacheBackend b, RunBackendEffect b, DumpBackendRequirements b) #
runDump :: DumpSpec b => RuntimeEnv -> RawInterpretedSpec b -> OutputDirectory -> IncludeUnmanagedTables -> DumpNameMode -> [RunTableSelector] -> ShowTasksGraph -> ShowTaskIds -> ShowHashes -> Maybe Value -> IO (Either (NonEmpty ValidationError) ()) #
renderTableSpec :: forall {k} (b :: k). ShowHashes -> SpecTableName -> (SpecTableName -> Ref Table) -> ProgramAndHooksDependenciesAndQueries b -> Either WriteLog (WriteLog, WriteLog) #
renderHook :: forall {k} (b :: k). ShowHashes -> Text -> DryRunResult b -> WriteLog #
storeDependencyGraph :: (SpecTableName -> Ref Table) -> TasksDAG Full b -> FilePath -> ShowTasksGraph -> ShowTaskIds -> IO () #
Constructors
| GraphJSON | |
Fields | |
Instances
| ToJSON GraphJSON # | |||||
| Generic GraphJSON # | |||||
Defined in Napkin.Spec.DumpDAG Associated Types
| |||||
| type Rep GraphJSON # | |||||
Defined in Napkin.Spec.DumpDAG type Rep GraphJSON = D1 ('MetaData "GraphJSON" "Napkin.Spec.DumpDAG" "napkin-runtime-2.0.0-Jnfp0IultB031hOPo9RyGD" 'True) (C1 ('MetaCons "GraphJSON" 'PrefixI 'True) (S1 ('MetaSel ('Just "managedTables") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Map SpecTableName ManagedTable)))) | |||||
data ManagedTable #
Constructors
| ManagedTable | |
Instances
toGraphJSON :: (SpecTableName -> Ref Table) -> TasksDAG Full b -> GraphJSON #