Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- class HasDeps a where
- traverseDependencies :: Fold a (Ref Table)
- (^...) :: Ord a => s -> Getting (Endo (Set a)) s a -> Set a
- tableDependencies :: HasDeps s => s -> Set (Ref Table)
- queryDependencies :: Data s => Fold s (Ref Table)
- queryDependenciesSet :: Query -> Set (Ref Table)
- sexpDependenciesSet :: SExp -> Set (Ref Table)
- relationDependenciesSet :: Relation -> Set (Ref Table)
- rawRelation :: HasDeps s => (s -> String) -> s -> Relation
Documentation
Class of things that have external table dependencies
traverseDependencies :: Fold a (Ref Table) #
Instances
HasDeps Query # | |
Defined in Napkin.Types.Deps | |
HasDeps From # | |
Defined in Napkin.Types.Deps | |
HasDeps Relation # | |
Defined in Napkin.Types.Deps | |
HasDeps SExp # | |
Defined in Napkin.Types.Deps | |
HasDeps ML_Predict # | |
Defined in Napkin.Types.Commands.BigQuery | |
HasDeps CreateModel # | |
Defined in Napkin.Types.Commands.BigQuery | |
HasDeps a => HasDeps [a] # | |
Defined in Napkin.Types.Deps traverseDependencies :: Fold [a] (Ref Table) # | |
HasDeps a => HasDeps (Selected a) # | |
Defined in Napkin.Types.Deps | |
HasDeps (CreateTableAs m) # | |
Defined in Napkin.Spec.Types traverseDependencies :: Fold (CreateTableAs m) (Ref Table) # | |
HasDeps (Ref Table) # | |
Defined in Napkin.Types.Deps |
queryDependencies :: Data s => Fold s (Ref Table) #
Figure out external table dependencies within a construct - e.g. Query or one of the commands.
rawRelation :: HasDeps s => (s -> String) -> s -> Relation #
Extract deps from object, render to string and wrap into a RawRelation