Copyright | (c) Soostone Inc 2020 |
---|---|
License | AllRightsReserved |
Stability | experimental |
Portability | POSIX |
Safe Haskell | Safe-Inferred |
Language | GHC2021 |
dump Specs as dot or SQL files
Documentation
type OutputDirectory = FilePath #
type DumpSpec b = (ReifiesBackend b, MustacheBackend b, RunBackendEffect b, DumpBackendRequirements b) #
runDump :: DumpSpec b => RuntimeEnv -> RawInterpretedSpec b -> OutputDirectory -> IncludeUnmanagedTables -> DumpNameMode -> [RunTableSelector] -> ShowTasksGraph -> ShowTaskIds -> Maybe Value -> IO (Either (NonEmpty ValidationError) ()) #
renderTableSpec :: SpecTableName -> (SpecTableName -> Ref Table) -> ProgramDependenciesAndQueries b -> Either WriteLog (WriteLog, WriteLog) #
storeDependencyGraph :: (SpecTableName -> Ref Table) -> TasksDAG Full b -> FilePath -> ShowTasksGraph -> ShowTaskIds -> IO () #
Instances
ToJSON GraphJSON # | |
Defined in Napkin.Spec.DumpDAG | |
Generic GraphJSON # | |
type Rep GraphJSON # | |
Defined in Napkin.Spec.DumpDAG type Rep GraphJSON = D1 ('MetaData "GraphJSON" "Napkin.Spec.DumpDAG" "napkin-1.0.0-B79azc00rn1K8mj00hwhwG" 'True) (C1 ('MetaCons "GraphJSON" 'PrefixI 'True) (S1 ('MetaSel ('Just "managedTables") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Map SpecTableName ManagedTable)))) |
data ManagedTable #
Instances
ToJSON ManagedTable # | |
Defined in Napkin.Spec.DumpDAG toJSON :: ManagedTable -> Value # toEncoding :: ManagedTable -> Encoding # toJSONList :: [ManagedTable] -> Value # toEncodingList :: [ManagedTable] -> Encoding # | |
Generic ManagedTable # | |
Defined in Napkin.Spec.DumpDAG type Rep ManagedTable :: Type -> Type # from :: ManagedTable -> Rep ManagedTable x # to :: Rep ManagedTable x -> ManagedTable # | |
type Rep ManagedTable # | |
Defined in Napkin.Spec.DumpDAG type Rep ManagedTable = D1 ('MetaData "ManagedTable" "Napkin.Spec.DumpDAG" "napkin-1.0.0-B79azc00rn1K8mj00hwhwG" 'False) (C1 ('MetaCons "ManagedTable" 'PrefixI 'True) (S1 ('MetaSel ('Just "dependencies") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Set (Ref Table))) :*: (S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Set TableSpecTag)) :*: S1 ('MetaSel ('Just "artifacts") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Set (Ref Table)))))) |
toGraphJSON :: (SpecTableName -> Ref Table) -> TasksDAG Full b -> GraphJSON #