napkin-0.5.9
Safe HaskellNone
LanguageHaskell2010

Napkin.Run.Effects.Interceptors.DiscoverDependencies

Synopsis

Documentation

interceptSqlReadDiscoverDependencies :: forall r a. Members [Writer (Set (Ref Table)), Output Query, Input (Transformed HiddenDependencies), Input (Transformed ExtraDependencies), SqlRead] r => Sem r a -> Sem r a #

Find all dependencies used in the given program. This incorporates both hidden and forcefully added dependencies in its report-out, and so it can be used for resolving dependencies in Spec.

TODO. This interceptor should probably get an Assertion dependence so that it can emit ValidationFailure when encountering table names with an asterisk in them but without a fully qualified xdep that matches the pattern. So we can warn user that they need to provide the dependency. Plus any other validations that should be performed during this operation.