Copyright | (c) Soostone Inc 2020 |
---|---|
License | AllRightsReserved |
Stability | experimental |
Portability | POSIX |
Safe Haskell | None |
Language | Haskell2010 |
dump Specs as dot or SQL files
Documentation
type OutputDirectory = FilePath #
type HtmlOutput = Bool #
type DumpSpec b = (ReifiesBackend b, MustacheBackend b, RunBackendEffect b, DumpBackendRequirements b) #
runDump :: DumpSpec b => RuntimeEnv -> RawInterpretedSpec b -> OutputDirectory -> IncludeUnmanagedTables -> Force -> HtmlOutput -> DumpNameMode -> IO (Either (NonEmpty ValidationError) ()) #
data DumpNameMode #
Instances
Eq DumpNameMode # | |
Defined in Napkin.Spec.Dump (==) :: DumpNameMode -> DumpNameMode -> Bool # (/=) :: DumpNameMode -> DumpNameMode -> Bool # | |
Show DumpNameMode # | |
Defined in Napkin.Spec.Dump showsPrec :: Int -> DumpNameMode -> ShowS # show :: DumpNameMode -> String # showList :: [DumpNameMode] -> ShowS # |
renderTableSpec :: forall b. (DumpSpec b, Eq (DryRunResult b)) => RuntimeEnv -> InterpretedSpecEnvironment -> TableSpec b -> IO (Either WriteLog (WriteLog, WriteLog)) #
storeDependencyGraph :: SpecDepGraph -> FilePath -> HtmlOutput -> IO () #
specGraphAsDot :: SpecDepGraph -> DotGraph Int #
tableau10Colors :: [Color] #
tableau20Colors :: [Color] #
specGraphAsDotText :: SpecDepGraph -> Text #
Instances
Generic GraphJSON # | |
ToJSON GraphJSON # | |
Defined in Napkin.Spec.Dump | |
type Rep GraphJSON # | |
Defined in Napkin.Spec.Dump type Rep GraphJSON = D1 ('MetaData "GraphJSON" "Napkin.Spec.Dump" "napkin-0.5.13-8705pBGlgyp7AIaYGNE2fM" 'True) (C1 ('MetaCons "GraphJSON" 'PrefixI 'True) (S1 ('MetaSel ('Just "managedTables") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Map (Ref Table) ManagedTable)))) |
data ManagedTable #
Instances
Generic ManagedTable # | |
Defined in Napkin.Spec.Dump type Rep ManagedTable :: Type -> Type # from :: ManagedTable -> Rep ManagedTable x # to :: Rep ManagedTable x -> ManagedTable # | |
ToJSON ManagedTable # | |
Defined in Napkin.Spec.Dump toJSON :: ManagedTable -> Value # toEncoding :: ManagedTable -> Encoding # toJSONList :: [ManagedTable] -> Value # toEncodingList :: [ManagedTable] -> Encoding # | |
type Rep ManagedTable # | |
Defined in Napkin.Spec.Dump type Rep ManagedTable = D1 ('MetaData "ManagedTable" "Napkin.Spec.Dump" "napkin-0.5.13-8705pBGlgyp7AIaYGNE2fM" '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 :: Specs b -> Map (Ref Table) (ProgramDependenciesAndQueries b) -> GraphJSON #