Safe Haskell | None |
---|---|
Language | GHC2021 |
Synopsis
- newtype Prefix = Prefix {}
- data CreateTableDDL meta = CreateTableDDL {}
- data InsertIntoTable = InsertIntoTable {
- name :: Ref Table
- insertStatement :: Statement
- createTable :: Default d => Ref Table -> Query -> CreateTable d
- dropTable :: Ref Table -> DropTable
- dropView :: Ref Table -> DropView
- data CreateTable meta = CreateTable {}
- data DropTable = DropTable {}
- data CreateView meta = CreateView {}
- data DropView = DropView {
- dvName :: Ref Table
- dvMaterialized :: ViewType
- dvIfExists :: Bool
- dvCascade :: Bool
- data AEDA = AEDA {}
- newtype ListTables = ListTables {}
- type family BackendTableMeta bk
- data ViewType
- type family BackendMaterializedViewMeta bk
- type family BackendViewMeta bk
- data TableWriteStrategy
- renderBigQuery :: TableWriteStrategy -> Text
- newtype ReadAnnotationCommand = ReadAnnotationCommand {}
- newtype CheckTableExists = CheckTableExists {}
- newtype GetTableKind = GetTableKind {}
- data AnnotateCommand = AnnotateCommand {}
- data AnnotateCommandType
- commandTypeToDescriptions :: AnnotateCommandType -> [AnnotateDescription]
- data RenameTable = RenameTable {}
- data CopyTable = CopyTable {
- ctFrom :: Ref Table
- ctTo :: Ref Table
- ctIfExists :: TableWriteStrategy
- execCopyTable :: forall meta backend m return return' return''. (MonadNapkin backend m, Default meta, Command (CreateTable meta) return backend, Command InsertIntoQuery return backend, Command DropTable return'' backend, Command DeleteFrom return' backend) => BackendConn backend -> CopyTable -> m return
- data InsertIntoQuery = InsertIntoQuery {}
- data DeleteFrom = DeleteFrom {}
- data CreateMaterializedView meta = CreateMaterializedView {}
- data GetRelationSchema = GetRelationSchema {}
- newtype NormalizeTableNames = NormalizeTableNames {
- _ntnTables :: Set (Ref Table)
- module Napkin.Types.Commands.Grant
Documentation
Instances
Data Prefix # | |
Defined in Napkin.Types.Commands gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Prefix -> c Prefix # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Prefix # toConstr :: Prefix -> Constr # dataTypeOf :: Prefix -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Prefix) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Prefix) # gmapT :: (forall b. Data b => b -> b) -> Prefix -> Prefix # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Prefix -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Prefix -> r # gmapQ :: (forall d. Data d => d -> u) -> Prefix -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Prefix -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Prefix -> m Prefix # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Prefix -> m Prefix # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Prefix -> m Prefix # | |
Show Prefix # | |
Buildable Prefix # | |
Defined in Napkin.Types.Commands | |
Eq Prefix # | |
Ord Prefix # | |
data CreateTableDDL meta #
Instances
data InsertIntoTable #
Instances
Data InsertIntoTable # | |||||
Defined in Napkin.Types.Commands gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> InsertIntoTable -> c InsertIntoTable # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c InsertIntoTable # toConstr :: InsertIntoTable -> Constr # dataTypeOf :: InsertIntoTable -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c InsertIntoTable) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c InsertIntoTable) # gmapT :: (forall b. Data b => b -> b) -> InsertIntoTable -> InsertIntoTable # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> InsertIntoTable -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> InsertIntoTable -> r # gmapQ :: (forall d. Data d => d -> u) -> InsertIntoTable -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> InsertIntoTable -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> InsertIntoTable -> m InsertIntoTable # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> InsertIntoTable -> m InsertIntoTable # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> InsertIntoTable -> m InsertIntoTable # | |||||
Generic InsertIntoTable # | |||||
Defined in Napkin.Types.Commands
from :: InsertIntoTable -> Rep InsertIntoTable x # to :: Rep InsertIntoTable x -> InsertIntoTable # | |||||
Show InsertIntoTable # | |||||
Defined in Napkin.Types.Commands showsPrec :: Int -> InsertIntoTable -> ShowS # show :: InsertIntoTable -> String # showList :: [InsertIntoTable] -> ShowS # | |||||
Eq InsertIntoTable # | |||||
Defined in Napkin.Types.Commands (==) :: InsertIntoTable -> InsertIntoTable -> Bool # (/=) :: InsertIntoTable -> InsertIntoTable -> Bool # | |||||
Command InsertIntoTable () BigQuery # | |||||
Defined in Napkin.Run.BigQuery execCommand :: MonadNapkin BigQuery m => BackendConn BigQuery -> InsertIntoTable -> m () # | |||||
Command InsertIntoTable () MsSql # | |||||
Defined in Napkin.Run.MsSql execCommand :: MonadNapkin MsSql m => BackendConn MsSql -> InsertIntoTable -> m () # | |||||
Command InsertIntoTable () Postgres # | |||||
Defined in Napkin.Run.Postgres execCommand :: MonadNapkin Postgres m => BackendConn Postgres -> InsertIntoTable -> m () # | |||||
Command InsertIntoTable () Redshift # | |||||
Defined in Napkin.Run.Redshift execCommand :: MonadNapkin Redshift m => BackendConn Redshift -> InsertIntoTable -> m () # | |||||
Command InsertIntoTable () Sqlite # | |||||
Defined in Napkin.Run.Sqlite execCommand :: MonadNapkin Sqlite m => BackendConn Sqlite -> InsertIntoTable -> m () # | |||||
type Rep InsertIntoTable # | |||||
Defined in Napkin.Types.Commands type Rep InsertIntoTable = D1 ('MetaData "InsertIntoTable" "Napkin.Types.Commands" "napkin-1.0.0-5YkWAC9Wc776PT0LDghaFb" 'False) (C1 ('MetaCons "InsertIntoTable" 'PrefixI 'True) (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Ref Table)) :*: S1 ('MetaSel ('Just "insertStatement") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Statement))) |
createTable :: Default d => Ref Table -> Query -> CreateTable d #
data CreateTable meta #
Create table based on a query with variable metadata type, such
as TableMeta
Instances
Data meta => Data (CreateTable meta) # | |||||
Defined in Napkin.Types.Commands gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CreateTable meta -> c (CreateTable meta) # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c (CreateTable meta) # toConstr :: CreateTable meta -> Constr # dataTypeOf :: CreateTable meta -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c (CreateTable meta)) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c (CreateTable meta)) # gmapT :: (forall b. Data b => b -> b) -> CreateTable meta -> CreateTable meta # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CreateTable meta -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CreateTable meta -> r # gmapQ :: (forall d. Data d => d -> u) -> CreateTable meta -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> CreateTable meta -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> CreateTable meta -> m (CreateTable meta) # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateTable meta -> m (CreateTable meta) # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateTable meta -> m (CreateTable meta) # | |||||
Generic (CreateTable meta) # | |||||
Defined in Napkin.Types.Commands
from :: CreateTable meta -> Rep (CreateTable meta) x # to :: Rep (CreateTable meta) x -> CreateTable meta # | |||||
Show meta => Show (CreateTable meta) # | |||||
Defined in Napkin.Types.Commands showsPrec :: Int -> CreateTable meta -> ShowS # show :: CreateTable meta -> String # showList :: [CreateTable meta] -> ShowS # | |||||
Eq meta => Eq (CreateTable meta) # | |||||
Defined in Napkin.Types.Commands (==) :: CreateTable meta -> CreateTable meta -> Bool # (/=) :: CreateTable meta -> CreateTable meta -> Bool # | |||||
AsRelation (CreateTable m) # | |||||
Defined in Napkin.Types.Commands asRelation :: CreateTable m -> Relation # | |||||
HasDefinition (CreateTable m) # | |||||
Defined in Napkin.Types.Commands defQuery :: Lens (CreateTable m) (CreateTable m) Query Query # | |||||
MaybeQuery (CreateTable m) # | |||||
Defined in Napkin.Types.Commands getQuery :: CreateTable m -> Maybe Query # | |||||
TableRef (CreateTable m) # | |||||
Defined in Napkin.Types.Commands | |||||
RenderSql (CreateTable TableMeta) BigQuery # | Used for dump command only; BigQuery can create stuff via SQL, but for tables we are using API now | ||||
Defined in Napkin.Render.BigQuery | |||||
RenderSql (CreateTable TableMeta) MsSql # | Commands | ||||
Defined in Napkin.Render.MsSql | |||||
RenderSql (CreateTable TableMeta) Postgres # | Commands | ||||
Defined in Napkin.Render.Postgres | |||||
RenderSql (CreateTable TableMeta) Redshift # | Commands | ||||
Defined in Napkin.Render.Redshift | |||||
RenderSql (CreateTable ()) Redshift # | |||||
Defined in Napkin.Render.Redshift | |||||
RenderSql (CreateTable ()) Sqlite # | Commands | ||||
Defined in Napkin.Render.Sqlite | |||||
Command (CreateTable TableMeta) () BigQuery # | |||||
Defined in Napkin.Run.BigQuery execCommand :: MonadNapkin BigQuery m => BackendConn BigQuery -> CreateTable TableMeta -> m () # | |||||
Command (CreateTable TableMeta) () MsSql # | |||||
Defined in Napkin.Run.MsSql execCommand :: MonadNapkin MsSql m => BackendConn MsSql -> CreateTable TableMeta -> m () # | |||||
Command (CreateTable TableMeta) () Postgres # | |||||
Defined in Napkin.Run.Postgres execCommand :: MonadNapkin Postgres m => BackendConn Postgres -> CreateTable TableMeta -> m () # | |||||
Command (CreateTable TableMeta) () Redshift # | |||||
Defined in Napkin.Run.Redshift execCommand :: MonadNapkin Redshift m => BackendConn Redshift -> CreateTable TableMeta -> m () # | |||||
Command (CreateTable ()) () BigQuery # | |||||
Defined in Napkin.Run.BigQuery execCommand :: MonadNapkin BigQuery m => BackendConn BigQuery -> CreateTable () -> m () # | |||||
Command (CreateTable ()) () Redshift # | |||||
Defined in Napkin.Run.Redshift execCommand :: MonadNapkin Redshift m => BackendConn Redshift -> CreateTable () -> m () # | |||||
Command (CreateTable ()) () Sqlite # | |||||
Defined in Napkin.Run.Sqlite execCommand :: MonadNapkin Sqlite m => BackendConn Sqlite -> CreateTable () -> m () # | |||||
type Rep (CreateTable meta) # | |||||
Defined in Napkin.Types.Commands type Rep (CreateTable meta) = D1 ('MetaData "CreateTable" "Napkin.Types.Commands" "napkin-1.0.0-5YkWAC9Wc776PT0LDghaFb" 'False) (C1 ('MetaCons "CreateTable" 'PrefixI 'True) (S1 ('MetaSel ('Just "ctMeta") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 meta) :*: (S1 ('MetaSel ('Just "ctName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Ref Table)) :*: S1 ('MetaSel ('Just "ctQuery") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Query)))) |
Drop a table
Instances
Data DropTable # | |||||
Defined in Napkin.Types.Commands gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DropTable -> c DropTable # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DropTable # toConstr :: DropTable -> Constr # dataTypeOf :: DropTable -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c DropTable) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DropTable) # gmapT :: (forall b. Data b => b -> b) -> DropTable -> DropTable # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DropTable -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DropTable -> r # gmapQ :: (forall d. Data d => d -> u) -> DropTable -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> DropTable -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> DropTable -> m DropTable # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DropTable -> m DropTable # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DropTable -> m DropTable # | |||||
Generic DropTable # | |||||
Defined in Napkin.Types.Commands
| |||||
Show DropTable # | |||||
Eq DropTable # | |||||
RenderSql DropTable MsSql # | |||||
RenderSql DropTable Postgres # | |||||
RenderSql DropTable Redshift # | |||||
RenderSql DropTable Sqlite # | |||||
Command DropTable () BigQuery # | |||||
Defined in Napkin.Run.BigQuery execCommand :: MonadNapkin BigQuery m => BackendConn BigQuery -> DropTable -> m () # | |||||
Command DropTable () MsSql # | |||||
Defined in Napkin.Run.MsSql execCommand :: MonadNapkin MsSql m => BackendConn MsSql -> DropTable -> m () # | |||||
Command DropTable () Postgres # | |||||
Defined in Napkin.Run.Postgres execCommand :: MonadNapkin Postgres m => BackendConn Postgres -> DropTable -> m () # | |||||
Command DropTable () Redshift # | |||||
Defined in Napkin.Run.Redshift execCommand :: MonadNapkin Redshift m => BackendConn Redshift -> DropTable -> m () # | |||||
Command DropTable () Sqlite # | |||||
Defined in Napkin.Run.Sqlite execCommand :: MonadNapkin Sqlite m => BackendConn Sqlite -> DropTable -> m () # | |||||
type Rep DropTable # | |||||
Defined in Napkin.Types.Commands type Rep DropTable = D1 ('MetaData "DropTable" "Napkin.Types.Commands" "napkin-1.0.0-5YkWAC9Wc776PT0LDghaFb" 'False) (C1 ('MetaCons "DropTable" 'PrefixI 'True) (S1 ('MetaSel ('Just "dtName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Ref Table)) :*: (S1 ('MetaSel ('Just "dtIfExists") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "dtCascade") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)))) |
data CreateView meta #
Instances
Data meta => Data (CreateView meta) # | |||||
Defined in Napkin.Types.Commands gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CreateView meta -> c (CreateView meta) # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c (CreateView meta) # toConstr :: CreateView meta -> Constr # dataTypeOf :: CreateView meta -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c (CreateView meta)) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c (CreateView meta)) # gmapT :: (forall b. Data b => b -> b) -> CreateView meta -> CreateView meta # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CreateView meta -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CreateView meta -> r # gmapQ :: (forall d. Data d => d -> u) -> CreateView meta -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> CreateView meta -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> CreateView meta -> m (CreateView meta) # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateView meta -> m (CreateView meta) # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateView meta -> m (CreateView meta) # | |||||
Generic (CreateView meta) # | |||||
Defined in Napkin.Types.Commands
from :: CreateView meta -> Rep (CreateView meta) x # to :: Rep (CreateView meta) x -> CreateView meta # | |||||
Show meta => Show (CreateView meta) # | |||||
Defined in Napkin.Types.Commands showsPrec :: Int -> CreateView meta -> ShowS # show :: CreateView meta -> String # showList :: [CreateView meta] -> ShowS # | |||||
Eq meta => Eq (CreateView meta) # | |||||
Defined in Napkin.Types.Commands (==) :: CreateView meta -> CreateView meta -> Bool # (/=) :: CreateView meta -> CreateView meta -> Bool # | |||||
AsRelation (CreateView meta) # | |||||
Defined in Napkin.Types.Commands asRelation :: CreateView meta -> Relation # | |||||
TableRef (CreateView meta) # | |||||
Defined in Napkin.Types.Commands | |||||
RenderSql (CreateView ViewMeta) BigQuery # | |||||
Defined in Napkin.Render.BigQuery | |||||
RenderSql (CreateView ()) MsSql # | |||||
Defined in Napkin.Render.MsSql | |||||
RenderSql (CreateView ()) Postgres # | |||||
Defined in Napkin.Render.Postgres | |||||
RenderSql (CreateView ()) Redshift # | |||||
Defined in Napkin.Render.Redshift | |||||
RenderSql (CreateView ()) Sqlite # | |||||
Defined in Napkin.Render.Sqlite | |||||
Command (CreateView ViewMeta) () BigQuery # | |||||
Defined in Napkin.Run.BigQuery execCommand :: MonadNapkin BigQuery m => BackendConn BigQuery -> CreateView ViewMeta -> m () # | |||||
Command (CreateView ()) () MsSql # | |||||
Defined in Napkin.Run.MsSql execCommand :: MonadNapkin MsSql m => BackendConn MsSql -> CreateView () -> m () # | |||||
Command (CreateView ()) () Postgres # | |||||
Defined in Napkin.Run.Postgres execCommand :: MonadNapkin Postgres m => BackendConn Postgres -> CreateView () -> m () # | |||||
Command (CreateView ()) () Redshift # | |||||
Defined in Napkin.Run.Redshift execCommand :: MonadNapkin Redshift m => BackendConn Redshift -> CreateView () -> m () # | |||||
Command (CreateView ()) () Sqlite # | |||||
Defined in Napkin.Run.Sqlite execCommand :: MonadNapkin Sqlite m => BackendConn Sqlite -> CreateView () -> m () # | |||||
type Rep (CreateView meta) # | |||||
Defined in Napkin.Types.Commands type Rep (CreateView meta) = D1 ('MetaData "CreateView" "Napkin.Types.Commands" "napkin-1.0.0-5YkWAC9Wc776PT0LDghaFb" 'False) (C1 ('MetaCons "CreateView" 'PrefixI 'True) (S1 ('MetaSel ('Just "cvMeta") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 meta) :*: (S1 ('MetaSel ('Just "cvName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Ref Table)) :*: S1 ('MetaSel ('Just "cvQuery") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Query)))) |
Drop a table
DropView | |
|
Instances
Data DropView # | |||||
Defined in Napkin.Types.Commands gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DropView -> c DropView # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DropView # toConstr :: DropView -> Constr # dataTypeOf :: DropView -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c DropView) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DropView) # gmapT :: (forall b. Data b => b -> b) -> DropView -> DropView # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DropView -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DropView -> r # gmapQ :: (forall d. Data d => d -> u) -> DropView -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> DropView -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> DropView -> m DropView # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DropView -> m DropView # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DropView -> m DropView # | |||||
Generic DropView # | |||||
Defined in Napkin.Types.Commands
| |||||
Show DropView # | |||||
Eq DropView # | |||||
TableRef DropView # | |||||
RenderSql DropView MsSql # | |||||
RenderSql DropView Postgres # | |||||
RenderSql DropView Redshift # | |||||
RenderSql DropView Sqlite # | |||||
Command DropView () BigQuery # | |||||
Defined in Napkin.Run.BigQuery execCommand :: MonadNapkin BigQuery m => BackendConn BigQuery -> DropView -> m () # | |||||
Command DropView () MsSql # | |||||
Defined in Napkin.Run.MsSql execCommand :: MonadNapkin MsSql m => BackendConn MsSql -> DropView -> m () # | |||||
Command DropView () Postgres # | |||||
Defined in Napkin.Run.Postgres execCommand :: MonadNapkin Postgres m => BackendConn Postgres -> DropView -> m () # | |||||
Command DropView () Redshift # | |||||
Defined in Napkin.Run.Redshift execCommand :: MonadNapkin Redshift m => BackendConn Redshift -> DropView -> m () # | |||||
Command DropView () Sqlite # | |||||
Defined in Napkin.Run.Sqlite execCommand :: MonadNapkin Sqlite m => BackendConn Sqlite -> DropView -> m () # | |||||
type Rep DropView # | |||||
Defined in Napkin.Types.Commands type Rep DropView = D1 ('MetaData "DropView" "Napkin.Types.Commands" "napkin-1.0.0-5YkWAC9Wc776PT0LDghaFb" 'False) (C1 ('MetaCons "DropView" 'PrefixI 'True) ((S1 ('MetaSel ('Just "dvName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Ref Table)) :*: S1 ('MetaSel ('Just "dvMaterialized") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ViewType)) :*: (S1 ('MetaSel ('Just "dvIfExists") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "dvCascade") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)))) |
Instances
Data AEDA # | |||||
Defined in Napkin.Types.Commands gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> AEDA -> c AEDA # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c AEDA # dataTypeOf :: AEDA -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c AEDA) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c AEDA) # gmapT :: (forall b. Data b => b -> b) -> AEDA -> AEDA # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> AEDA -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> AEDA -> r # gmapQ :: (forall d. Data d => d -> u) -> AEDA -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> AEDA -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> AEDA -> m AEDA # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> AEDA -> m AEDA # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> AEDA -> m AEDA # | |||||
Generic AEDA # | |||||
Defined in Napkin.Types.Commands
| |||||
Show AEDA # | |||||
Eq AEDA # | |||||
Command AEDA TableDiagnostics BigQuery # | |||||
Defined in Napkin.Run.BigQuery execCommand :: MonadNapkin BigQuery m => BackendConn BigQuery -> AEDA -> m TableDiagnostics # | |||||
Command AEDA TableDiagnostics MsSql # | |||||
Defined in Napkin.Run.MsSql execCommand :: MonadNapkin MsSql m => BackendConn MsSql -> AEDA -> m TableDiagnostics # | |||||
Command AEDA TableDiagnostics Postgres # | |||||
Defined in Napkin.Run.Postgres execCommand :: MonadNapkin Postgres m => BackendConn Postgres -> AEDA -> m TableDiagnostics # | |||||
Command AEDA TableDiagnostics Redshift # | |||||
Defined in Napkin.Run.Redshift execCommand :: MonadNapkin Redshift m => BackendConn Redshift -> AEDA -> m TableDiagnostics # | |||||
Command AEDA TableDiagnostics Sqlite # | |||||
Defined in Napkin.Run.Sqlite execCommand :: MonadNapkin Sqlite m => BackendConn Sqlite -> AEDA -> m TableDiagnostics # | |||||
type Rep AEDA # | |||||
Defined in Napkin.Types.Commands type Rep AEDA = D1 ('MetaData "AEDA" "Napkin.Types.Commands" "napkin-1.0.0-5YkWAC9Wc776PT0LDghaFb" 'False) (C1 ('MetaCons "AEDA" 'PrefixI 'True) ((S1 ('MetaSel ('Just "_runDataSet") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Ref Table)) :*: S1 ('MetaSel ('Just "_runRelation") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Relation)) :*: (S1 ('MetaSel ('Just "_runSamplePercentage") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int)) :*: (S1 ('MetaSel ('Just "_runMaxColumnsPerQuery") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "_runOutputCSVFile") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool))))) |
newtype ListTables #
Instances
Data ListTables # | |||||
Defined in Napkin.Types.Commands gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ListTables -> c ListTables # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ListTables # toConstr :: ListTables -> Constr # dataTypeOf :: ListTables -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c ListTables) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ListTables) # gmapT :: (forall b. Data b => b -> b) -> ListTables -> ListTables # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ListTables -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ListTables -> r # gmapQ :: (forall d. Data d => d -> u) -> ListTables -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> ListTables -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> ListTables -> m ListTables # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ListTables -> m ListTables # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ListTables -> m ListTables # | |||||
Generic ListTables # | |||||
Defined in Napkin.Types.Commands
from :: ListTables -> Rep ListTables x # to :: Rep ListTables x -> ListTables # | |||||
Show ListTables # | |||||
Defined in Napkin.Types.Commands showsPrec :: Int -> ListTables -> ShowS # show :: ListTables -> String # showList :: [ListTables] -> ShowS # | |||||
Eq ListTables # | |||||
Defined in Napkin.Types.Commands (==) :: ListTables -> ListTables -> Bool # (/=) :: ListTables -> ListTables -> Bool # | |||||
Command ListTables (Set ListedTable) BigQuery # | |||||
Defined in Napkin.Run.BigQuery execCommand :: MonadNapkin BigQuery m => BackendConn BigQuery -> ListTables -> m (Set ListedTable) # | |||||
Command ListTables (Set ListedTable) MsSql # | |||||
Defined in Napkin.Run.MsSql execCommand :: MonadNapkin MsSql m => BackendConn MsSql -> ListTables -> m (Set ListedTable) # | |||||
Command ListTables (Set ListedTable) Postgres # | |||||
Defined in Napkin.Run.Postgres execCommand :: MonadNapkin Postgres m => BackendConn Postgres -> ListTables -> m (Set ListedTable) # | |||||
Command ListTables (Set ListedTable) Redshift # | |||||
Defined in Napkin.Run.Redshift execCommand :: MonadNapkin Redshift m => BackendConn Redshift -> ListTables -> m (Set ListedTable) # | |||||
Command ListTables (Set ListedTable) Sqlite # | |||||
Defined in Napkin.Run.Sqlite execCommand :: MonadNapkin Sqlite m => BackendConn Sqlite -> ListTables -> m (Set ListedTable) # | |||||
type Rep ListTables # | |||||
Defined in Napkin.Types.Commands type Rep ListTables = D1 ('MetaData "ListTables" "Napkin.Types.Commands" "napkin-1.0.0-5YkWAC9Wc776PT0LDghaFb" 'True) (C1 ('MetaCons "ListTables" 'PrefixI 'True) (S1 ('MetaSel ('Just "_listPrefixes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Set Prefix)))) |
type family BackendTableMeta bk #
Operations like recreate
often result in ambiguous types at
application site. In general, we need to be able to infer a
type for the table metadata type for each backend. Our life is
complicated by the likes of Redshift TableMeta
Instances
type BackendTableMeta BigQuery # | |
Defined in Napkin.Types.BigQuery | |
type BackendTableMeta MsSql # | |
Defined in Napkin.Types.MsSql | |
type BackendTableMeta Postgres # | |
Defined in Napkin.Types.Postgres | |
type BackendTableMeta Redshift # | |
Defined in Napkin.Types.Redshift | |
type BackendTableMeta Sqlite # | |
Defined in Napkin.Types.Sqlite |
Instances
Data ViewType # | |
Defined in Napkin.Types.Commands gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ViewType -> c ViewType # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ViewType # toConstr :: ViewType -> Constr # dataTypeOf :: ViewType -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c ViewType) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ViewType) # gmapT :: (forall b. Data b => b -> b) -> ViewType -> ViewType # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ViewType -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ViewType -> r # gmapQ :: (forall d. Data d => d -> u) -> ViewType -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> ViewType -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> ViewType -> m ViewType # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ViewType -> m ViewType # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ViewType -> m ViewType # | |
Generic ViewType # | |
Defined in Napkin.Types.Commands | |
Show ViewType # | |
Eq ViewType # | |
type Rep ViewType # | |
type family BackendMaterializedViewMeta bk #
Instances
type BackendMaterializedViewMeta BigQuery # | |
Defined in Napkin.Types.BigQuery | |
type BackendMaterializedViewMeta MsSql # | |
Defined in Napkin.Types.MsSql | |
type BackendMaterializedViewMeta Postgres # | |
Defined in Napkin.Types.Postgres | |
type BackendMaterializedViewMeta Redshift # | |
Defined in Napkin.Types.Redshift | |
type BackendMaterializedViewMeta Sqlite # | |
Defined in Napkin.Types.Sqlite |
type family BackendViewMeta bk #
Instances
type BackendViewMeta BigQuery # | |
Defined in Napkin.Types.BigQuery | |
type BackendViewMeta MsSql # | |
Defined in Napkin.Types.MsSql | |
type BackendViewMeta Postgres # | |
Defined in Napkin.Types.Postgres | |
type BackendViewMeta Redshift # | |
Defined in Napkin.Types.Redshift | |
type BackendViewMeta Sqlite # | |
Defined in Napkin.Types.Sqlite |
data TableWriteStrategy #
csv importing/copy option
Instances
FromJSON TableWriteStrategy # | |||||
Defined in Napkin.Types.Commands | |||||
ToJSON TableWriteStrategy # | |||||
Defined in Napkin.Types.Commands toJSON :: TableWriteStrategy -> Value # toEncoding :: TableWriteStrategy -> Encoding # toJSONList :: [TableWriteStrategy] -> Value # toEncodingList :: [TableWriteStrategy] -> Encoding # omitField :: TableWriteStrategy -> Bool # | |||||
Data TableWriteStrategy # | |||||
Defined in Napkin.Types.Commands gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> TableWriteStrategy -> c TableWriteStrategy # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c TableWriteStrategy # toConstr :: TableWriteStrategy -> Constr # dataTypeOf :: TableWriteStrategy -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c TableWriteStrategy) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c TableWriteStrategy) # gmapT :: (forall b. Data b => b -> b) -> TableWriteStrategy -> TableWriteStrategy # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> TableWriteStrategy -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> TableWriteStrategy -> r # gmapQ :: (forall d. Data d => d -> u) -> TableWriteStrategy -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> TableWriteStrategy -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> TableWriteStrategy -> m TableWriteStrategy # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> TableWriteStrategy -> m TableWriteStrategy # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> TableWriteStrategy -> m TableWriteStrategy # | |||||
Bounded TableWriteStrategy # | |||||
Defined in Napkin.Types.Commands | |||||
Enum TableWriteStrategy # | |||||
Defined in Napkin.Types.Commands succ :: TableWriteStrategy -> TableWriteStrategy # pred :: TableWriteStrategy -> TableWriteStrategy # toEnum :: Int -> TableWriteStrategy # fromEnum :: TableWriteStrategy -> Int # enumFrom :: TableWriteStrategy -> [TableWriteStrategy] # enumFromThen :: TableWriteStrategy -> TableWriteStrategy -> [TableWriteStrategy] # enumFromTo :: TableWriteStrategy -> TableWriteStrategy -> [TableWriteStrategy] # enumFromThenTo :: TableWriteStrategy -> TableWriteStrategy -> TableWriteStrategy -> [TableWriteStrategy] # | |||||
Generic TableWriteStrategy # | |||||
Defined in Napkin.Types.Commands
from :: TableWriteStrategy -> Rep TableWriteStrategy x # to :: Rep TableWriteStrategy x -> TableWriteStrategy # | |||||
Show TableWriteStrategy # | |||||
Defined in Napkin.Types.Commands showsPrec :: Int -> TableWriteStrategy -> ShowS # show :: TableWriteStrategy -> String # showList :: [TableWriteStrategy] -> ShowS # | |||||
Eq TableWriteStrategy # | |||||
Defined in Napkin.Types.Commands (==) :: TableWriteStrategy -> TableWriteStrategy -> Bool # (/=) :: TableWriteStrategy -> TableWriteStrategy -> Bool # | |||||
type Rep TableWriteStrategy # | |||||
Defined in Napkin.Types.Commands type Rep TableWriteStrategy = D1 ('MetaData "TableWriteStrategy" "Napkin.Types.Commands" "napkin-1.0.0-5YkWAC9Wc776PT0LDghaFb" 'False) (C1 ('MetaCons "TableWriteStrategyRecreate" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "TableWriteStrategyTruncate" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "TableWriteStrategyAppend" 'PrefixI 'False) (U1 :: Type -> Type))) |
newtype ReadAnnotationCommand #
Instances
Command ReadAnnotationCommand TableAnnotations BigQuery # | |
Defined in Napkin.Run.BigQuery execCommand :: MonadNapkin BigQuery m => BackendConn BigQuery -> ReadAnnotationCommand -> m TableAnnotations # | |
Command ReadAnnotationCommand TableAnnotations MsSql # | |
Defined in Napkin.Run.MsSql execCommand :: MonadNapkin MsSql m => BackendConn MsSql -> ReadAnnotationCommand -> m TableAnnotations # | |
Command ReadAnnotationCommand TableAnnotations Postgres # | |
Defined in Napkin.Run.Postgres execCommand :: MonadNapkin Postgres m => BackendConn Postgres -> ReadAnnotationCommand -> m TableAnnotations # | |
Command ReadAnnotationCommand TableAnnotations Redshift # | |
Defined in Napkin.Run.Redshift execCommand :: MonadNapkin Redshift m => BackendConn Redshift -> ReadAnnotationCommand -> m TableAnnotations # | |
Command ReadAnnotationCommand TableAnnotations Sqlite # | |
Defined in Napkin.Run.Sqlite execCommand :: MonadNapkin Sqlite m => BackendConn Sqlite -> ReadAnnotationCommand -> m TableAnnotations # |
newtype CheckTableExists #
Instances
Data CheckTableExists # | |||||
Defined in Napkin.Types.Commands gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CheckTableExists -> c CheckTableExists # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CheckTableExists # toConstr :: CheckTableExists -> Constr # dataTypeOf :: CheckTableExists -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c CheckTableExists) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CheckTableExists) # gmapT :: (forall b. Data b => b -> b) -> CheckTableExists -> CheckTableExists # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CheckTableExists -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CheckTableExists -> r # gmapQ :: (forall d. Data d => d -> u) -> CheckTableExists -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> CheckTableExists -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> CheckTableExists -> m CheckTableExists # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CheckTableExists -> m CheckTableExists # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CheckTableExists -> m CheckTableExists # | |||||
Generic CheckTableExists # | |||||
Defined in Napkin.Types.Commands
from :: CheckTableExists -> Rep CheckTableExists x # to :: Rep CheckTableExists x -> CheckTableExists # | |||||
Show CheckTableExists # | |||||
Defined in Napkin.Types.Commands showsPrec :: Int -> CheckTableExists -> ShowS # show :: CheckTableExists -> String # showList :: [CheckTableExists] -> ShowS # | |||||
Eq CheckTableExists # | |||||
Defined in Napkin.Types.Commands (==) :: CheckTableExists -> CheckTableExists -> Bool # (/=) :: CheckTableExists -> CheckTableExists -> Bool # | |||||
Command CheckTableExists Bool BigQuery # | |||||
Defined in Napkin.Run.BigQuery execCommand :: MonadNapkin BigQuery m => BackendConn BigQuery -> CheckTableExists -> m Bool # | |||||
Command CheckTableExists Bool MsSql # | |||||
Defined in Napkin.Run.MsSql execCommand :: MonadNapkin MsSql m => BackendConn MsSql -> CheckTableExists -> m Bool # | |||||
Command CheckTableExists Bool Postgres # | |||||
Defined in Napkin.Run.Postgres execCommand :: MonadNapkin Postgres m => BackendConn Postgres -> CheckTableExists -> m Bool # | |||||
Command CheckTableExists Bool Redshift # | |||||
Defined in Napkin.Run.Redshift execCommand :: MonadNapkin Redshift m => BackendConn Redshift -> CheckTableExists -> m Bool # | |||||
Command CheckTableExists Bool Sqlite # | |||||
Defined in Napkin.Run.Sqlite execCommand :: MonadNapkin Sqlite m => BackendConn Sqlite -> CheckTableExists -> m Bool # | |||||
type Rep CheckTableExists # | |||||
Defined in Napkin.Types.Commands type Rep CheckTableExists = D1 ('MetaData "CheckTableExists" "Napkin.Types.Commands" "napkin-1.0.0-5YkWAC9Wc776PT0LDghaFb" 'True) (C1 ('MetaCons "CheckTableExists" 'PrefixI 'True) (S1 ('MetaSel ('Just "cteTable") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Ref Table)))) |
newtype GetTableKind #
Instances
Data GetTableKind # | |||||
Defined in Napkin.Types.Commands gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> GetTableKind -> c GetTableKind # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c GetTableKind # toConstr :: GetTableKind -> Constr # dataTypeOf :: GetTableKind -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c GetTableKind) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c GetTableKind) # gmapT :: (forall b. Data b => b -> b) -> GetTableKind -> GetTableKind # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> GetTableKind -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> GetTableKind -> r # gmapQ :: (forall d. Data d => d -> u) -> GetTableKind -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> GetTableKind -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> GetTableKind -> m GetTableKind # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> GetTableKind -> m GetTableKind # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> GetTableKind -> m GetTableKind # | |||||
Generic GetTableKind # | |||||
Defined in Napkin.Types.Commands
from :: GetTableKind -> Rep GetTableKind x # to :: Rep GetTableKind x -> GetTableKind # | |||||
Show GetTableKind # | |||||
Defined in Napkin.Types.Commands showsPrec :: Int -> GetTableKind -> ShowS # show :: GetTableKind -> String # showList :: [GetTableKind] -> ShowS # | |||||
Eq GetTableKind # | |||||
Defined in Napkin.Types.Commands (==) :: GetTableKind -> GetTableKind -> Bool # (/=) :: GetTableKind -> GetTableKind -> Bool # | |||||
Command GetTableKind TableKind BigQuery # | |||||
Defined in Napkin.Run.BigQuery execCommand :: MonadNapkin BigQuery m => BackendConn BigQuery -> GetTableKind -> m TableKind # | |||||
Command GetTableKind TableKind MsSql # | |||||
Defined in Napkin.Run.MsSql execCommand :: MonadNapkin MsSql m => BackendConn MsSql -> GetTableKind -> m TableKind # | |||||
Command GetTableKind TableKind Postgres # | |||||
Defined in Napkin.Run.Postgres execCommand :: MonadNapkin Postgres m => BackendConn Postgres -> GetTableKind -> m TableKind # | |||||
Command GetTableKind TableKind Redshift # | |||||
Defined in Napkin.Run.Redshift execCommand :: MonadNapkin Redshift m => BackendConn Redshift -> GetTableKind -> m TableKind # | |||||
Command GetTableKind TableKind Sqlite # | |||||
Defined in Napkin.Run.Sqlite execCommand :: MonadNapkin Sqlite m => BackendConn Sqlite -> GetTableKind -> m TableKind # | |||||
type Rep GetTableKind # | |||||
Defined in Napkin.Types.Commands type Rep GetTableKind = D1 ('MetaData "GetTableKind" "Napkin.Types.Commands" "napkin-1.0.0-5YkWAC9Wc776PT0LDghaFb" 'True) (C1 ('MetaCons "GetTableKind" 'PrefixI 'True) (S1 ('MetaSel ('Just "gtkTable") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Ref Table)))) |
data AnnotateCommand #
Instances
Command AnnotateCommand () BigQuery # | |
Defined in Napkin.Run.BigQuery execCommand :: MonadNapkin BigQuery m => BackendConn BigQuery -> AnnotateCommand -> m () # | |
Command AnnotateCommand () MsSql # | |
Defined in Napkin.Run.MsSql execCommand :: MonadNapkin MsSql m => BackendConn MsSql -> AnnotateCommand -> m () # | |
Command AnnotateCommand () Postgres # | |
Defined in Napkin.Run.Postgres execCommand :: MonadNapkin Postgres m => BackendConn Postgres -> AnnotateCommand -> m () # | |
Command AnnotateCommand () Redshift # | |
Defined in Napkin.Run.Redshift execCommand :: MonadNapkin Redshift m => BackendConn Redshift -> AnnotateCommand -> m () # | |
Command AnnotateCommand () Sqlite # | |
Defined in Napkin.Run.Sqlite execCommand :: MonadNapkin Sqlite m => BackendConn Sqlite -> AnnotateCommand -> m () # |
data RenameTable #
Instances
Data RenameTable # | |||||
Defined in Napkin.Types.Commands gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> RenameTable -> c RenameTable # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c RenameTable # toConstr :: RenameTable -> Constr # dataTypeOf :: RenameTable -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c RenameTable) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c RenameTable) # gmapT :: (forall b. Data b => b -> b) -> RenameTable -> RenameTable # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> RenameTable -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> RenameTable -> r # gmapQ :: (forall d. Data d => d -> u) -> RenameTable -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> RenameTable -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> RenameTable -> m RenameTable # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> RenameTable -> m RenameTable # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> RenameTable -> m RenameTable # | |||||
Generic RenameTable # | |||||
Defined in Napkin.Types.Commands
from :: RenameTable -> Rep RenameTable x # to :: Rep RenameTable x -> RenameTable # | |||||
Show RenameTable # | |||||
Defined in Napkin.Types.Commands showsPrec :: Int -> RenameTable -> ShowS # show :: RenameTable -> String # showList :: [RenameTable] -> ShowS # | |||||
Eq RenameTable # | |||||
Defined in Napkin.Types.Commands (==) :: RenameTable -> RenameTable -> Bool # (/=) :: RenameTable -> RenameTable -> Bool # | |||||
RenderSql RenameTable MsSql # | |||||
Defined in Napkin.Render.MsSql | |||||
RenderSql RenameTable Postgres # | |||||
Defined in Napkin.Render.Postgres | |||||
RenderSql RenameTable Redshift # | |||||
Defined in Napkin.Render.Redshift | |||||
RenderSql RenameTable Sqlite # | |||||
Defined in Napkin.Render.Sqlite | |||||
Command RenameTable () BigQuery # | BQ implements rename via copy-then-drop | ||||
Defined in Napkin.Run.BigQuery execCommand :: MonadNapkin BigQuery m => BackendConn BigQuery -> RenameTable -> m () # | |||||
Command RenameTable () MsSql # | |||||
Defined in Napkin.Run.MsSql execCommand :: MonadNapkin MsSql m => BackendConn MsSql -> RenameTable -> m () # | |||||
Command RenameTable () Postgres # | |||||
Defined in Napkin.Run.Postgres execCommand :: MonadNapkin Postgres m => BackendConn Postgres -> RenameTable -> m () # | |||||
Command RenameTable () Redshift # | |||||
Defined in Napkin.Run.Redshift execCommand :: MonadNapkin Redshift m => BackendConn Redshift -> RenameTable -> m () # | |||||
Command RenameTable () Sqlite # | |||||
Defined in Napkin.Run.Sqlite execCommand :: MonadNapkin Sqlite m => BackendConn Sqlite -> RenameTable -> m () # | |||||
type Rep RenameTable # | |||||
Defined in Napkin.Types.Commands type Rep RenameTable = D1 ('MetaData "RenameTable" "Napkin.Types.Commands" "napkin-1.0.0-5YkWAC9Wc776PT0LDghaFb" 'False) (C1 ('MetaCons "RenameTable" 'PrefixI 'True) (S1 ('MetaSel ('Just "rtFrom") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Ref Table)) :*: S1 ('MetaSel ('Just "rtTo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Ref Table)))) |
CopyTable | |
|
Instances
Data CopyTable # | |||||
Defined in Napkin.Types.Commands gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CopyTable -> c CopyTable # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CopyTable # toConstr :: CopyTable -> Constr # dataTypeOf :: CopyTable -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c CopyTable) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CopyTable) # gmapT :: (forall b. Data b => b -> b) -> CopyTable -> CopyTable # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CopyTable -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CopyTable -> r # gmapQ :: (forall d. Data d => d -> u) -> CopyTable -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> CopyTable -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> CopyTable -> m CopyTable # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CopyTable -> m CopyTable # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CopyTable -> m CopyTable # | |||||
Generic CopyTable # | |||||
Defined in Napkin.Types.Commands
| |||||
Show CopyTable # | |||||
Eq CopyTable # | |||||
Command CopyTable () BigQuery # | |||||
Defined in Napkin.Run.BigQuery execCommand :: MonadNapkin BigQuery m => BackendConn BigQuery -> CopyTable -> m () # | |||||
Command CopyTable () MsSql # | |||||
Defined in Napkin.Run.MsSql execCommand :: MonadNapkin MsSql m => BackendConn MsSql -> CopyTable -> m () # | |||||
Command CopyTable () Postgres # | |||||
Defined in Napkin.Run.Postgres execCommand :: MonadNapkin Postgres m => BackendConn Postgres -> CopyTable -> m () # | |||||
Command CopyTable () Redshift # | |||||
Defined in Napkin.Run.Redshift execCommand :: MonadNapkin Redshift m => BackendConn Redshift -> CopyTable -> m () # | |||||
Command CopyTable () Sqlite # | |||||
Defined in Napkin.Run.Sqlite execCommand :: MonadNapkin Sqlite m => BackendConn Sqlite -> CopyTable -> m () # | |||||
type Rep CopyTable # | |||||
Defined in Napkin.Types.Commands type Rep CopyTable = D1 ('MetaData "CopyTable" "Napkin.Types.Commands" "napkin-1.0.0-5YkWAC9Wc776PT0LDghaFb" 'False) (C1 ('MetaCons "CopyTable" 'PrefixI 'True) (S1 ('MetaSel ('Just "ctFrom") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Ref Table)) :*: (S1 ('MetaSel ('Just "ctTo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Ref Table)) :*: S1 ('MetaSel ('Just "ctIfExists") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TableWriteStrategy)))) |
execCopyTable :: forall meta backend m return return' return''. (MonadNapkin backend m, Default meta, Command (CreateTable meta) return backend, Command InsertIntoQuery return backend, Command DropTable return'' backend, Command DeleteFrom return' backend) => BackendConn backend -> CopyTable -> m return #
Default CopyTable Command implementation
data InsertIntoQuery #
Instances
Data InsertIntoQuery # | |||||
Defined in Napkin.Types.Commands gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> InsertIntoQuery -> c InsertIntoQuery # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c InsertIntoQuery # toConstr :: InsertIntoQuery -> Constr # dataTypeOf :: InsertIntoQuery -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c InsertIntoQuery) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c InsertIntoQuery) # gmapT :: (forall b. Data b => b -> b) -> InsertIntoQuery -> InsertIntoQuery # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> InsertIntoQuery -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> InsertIntoQuery -> r # gmapQ :: (forall d. Data d => d -> u) -> InsertIntoQuery -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> InsertIntoQuery -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> InsertIntoQuery -> m InsertIntoQuery # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> InsertIntoQuery -> m InsertIntoQuery # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> InsertIntoQuery -> m InsertIntoQuery # | |||||
Generic InsertIntoQuery # | |||||
Defined in Napkin.Types.Commands
from :: InsertIntoQuery -> Rep InsertIntoQuery x # to :: Rep InsertIntoQuery x -> InsertIntoQuery # | |||||
Show InsertIntoQuery # | |||||
Defined in Napkin.Types.Commands showsPrec :: Int -> InsertIntoQuery -> ShowS # show :: InsertIntoQuery -> String # showList :: [InsertIntoQuery] -> ShowS # | |||||
Eq InsertIntoQuery # | |||||
Defined in Napkin.Types.Commands (==) :: InsertIntoQuery -> InsertIntoQuery -> Bool # (/=) :: InsertIntoQuery -> InsertIntoQuery -> Bool # | |||||
TableRef InsertIntoQuery # | |||||
Defined in Napkin.Types.Commands | |||||
RenderSql InsertIntoQuery BigQuery # | |||||
Defined in Napkin.Render.BigQuery | |||||
RenderSql InsertIntoQuery MsSql # | |||||
Defined in Napkin.Render.MsSql | |||||
RenderSql InsertIntoQuery Postgres # | |||||
Defined in Napkin.Render.Postgres | |||||
RenderSql InsertIntoQuery Redshift # | |||||
Defined in Napkin.Render.Redshift | |||||
RenderSql InsertIntoQuery Sqlite # | |||||
Defined in Napkin.Render.Sqlite | |||||
Command InsertIntoQuery () BigQuery # | |||||
Defined in Napkin.Run.BigQuery execCommand :: MonadNapkin BigQuery m => BackendConn BigQuery -> InsertIntoQuery -> m () # | |||||
Command InsertIntoQuery () MsSql # | |||||
Defined in Napkin.Run.MsSql execCommand :: MonadNapkin MsSql m => BackendConn MsSql -> InsertIntoQuery -> m () # | |||||
Command InsertIntoQuery () Postgres # | |||||
Defined in Napkin.Run.Postgres execCommand :: MonadNapkin Postgres m => BackendConn Postgres -> InsertIntoQuery -> m () # | |||||
Command InsertIntoQuery () Redshift # | |||||
Defined in Napkin.Run.Redshift execCommand :: MonadNapkin Redshift m => BackendConn Redshift -> InsertIntoQuery -> m () # | |||||
Command InsertIntoQuery () Sqlite # | |||||
Defined in Napkin.Run.Sqlite execCommand :: MonadNapkin Sqlite m => BackendConn Sqlite -> InsertIntoQuery -> m () # | |||||
type Rep InsertIntoQuery # | |||||
Defined in Napkin.Types.Commands type Rep InsertIntoQuery = D1 ('MetaData "InsertIntoQuery" "Napkin.Types.Commands" "napkin-1.0.0-5YkWAC9Wc776PT0LDghaFb" 'False) (C1 ('MetaCons "InsertIntoQuery" 'PrefixI 'True) (S1 ('MetaSel ('Just "iiqTable") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Ref Table)) :*: S1 ('MetaSel ('Just "iiqQuery") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Query))) |
data DeleteFrom #
TODO: Add in the USING clause
Instances
Data DeleteFrom # | |||||
Defined in Napkin.Types.Commands gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DeleteFrom -> c DeleteFrom # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DeleteFrom # toConstr :: DeleteFrom -> Constr # dataTypeOf :: DeleteFrom -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c DeleteFrom) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DeleteFrom) # gmapT :: (forall b. Data b => b -> b) -> DeleteFrom -> DeleteFrom # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DeleteFrom -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DeleteFrom -> r # gmapQ :: (forall d. Data d => d -> u) -> DeleteFrom -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> DeleteFrom -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> DeleteFrom -> m DeleteFrom # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DeleteFrom -> m DeleteFrom # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DeleteFrom -> m DeleteFrom # | |||||
Generic DeleteFrom # | |||||
Defined in Napkin.Types.Commands
from :: DeleteFrom -> Rep DeleteFrom x # to :: Rep DeleteFrom x -> DeleteFrom # | |||||
Show DeleteFrom # | |||||
Defined in Napkin.Types.Commands showsPrec :: Int -> DeleteFrom -> ShowS # show :: DeleteFrom -> String # showList :: [DeleteFrom] -> ShowS # | |||||
Eq DeleteFrom # | |||||
Defined in Napkin.Types.Commands (==) :: DeleteFrom -> DeleteFrom -> Bool # (/=) :: DeleteFrom -> DeleteFrom -> Bool # | |||||
TableRef DeleteFrom # | |||||
Defined in Napkin.Types.Commands | |||||
RenderSql DeleteFrom BigQuery # | |||||
Defined in Napkin.Render.BigQuery | |||||
RenderSql DeleteFrom MsSql # | |||||
Defined in Napkin.Render.MsSql | |||||
RenderSql DeleteFrom Postgres # | |||||
Defined in Napkin.Render.Postgres | |||||
RenderSql DeleteFrom Redshift # | |||||
Defined in Napkin.Render.Redshift | |||||
RenderSql DeleteFrom Sqlite # | |||||
Defined in Napkin.Render.Sqlite | |||||
Command DeleteFrom () BigQuery # | |||||
Defined in Napkin.Run.BigQuery execCommand :: MonadNapkin BigQuery m => BackendConn BigQuery -> DeleteFrom -> m () # | |||||
Command DeleteFrom () MsSql # | |||||
Defined in Napkin.Run.MsSql execCommand :: MonadNapkin MsSql m => BackendConn MsSql -> DeleteFrom -> m () # | |||||
Command DeleteFrom () Postgres # | |||||
Defined in Napkin.Run.Postgres execCommand :: MonadNapkin Postgres m => BackendConn Postgres -> DeleteFrom -> m () # | |||||
Command DeleteFrom () Redshift # | |||||
Defined in Napkin.Run.Redshift execCommand :: MonadNapkin Redshift m => BackendConn Redshift -> DeleteFrom -> m () # | |||||
Command DeleteFrom () Sqlite # | |||||
Defined in Napkin.Run.Sqlite execCommand :: MonadNapkin Sqlite m => BackendConn Sqlite -> DeleteFrom -> m () # | |||||
type Rep DeleteFrom # | |||||
Defined in Napkin.Types.Commands type Rep DeleteFrom = D1 ('MetaData "DeleteFrom" "Napkin.Types.Commands" "napkin-1.0.0-5YkWAC9Wc776PT0LDghaFb" 'False) (C1 ('MetaCons "DeleteFrom" 'PrefixI 'True) (S1 ('MetaSel ('Just "dfTable") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Ref Table)) :*: S1 ('MetaSel ('Just "dfWhere") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SExp))) |
data CreateMaterializedView meta #
Instances
Data meta => Data (CreateMaterializedView meta) # | |||||
Defined in Napkin.Types.Commands gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CreateMaterializedView meta -> c (CreateMaterializedView meta) # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c (CreateMaterializedView meta) # toConstr :: CreateMaterializedView meta -> Constr # dataTypeOf :: CreateMaterializedView meta -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c (CreateMaterializedView meta)) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c (CreateMaterializedView meta)) # gmapT :: (forall b. Data b => b -> b) -> CreateMaterializedView meta -> CreateMaterializedView meta # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CreateMaterializedView meta -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CreateMaterializedView meta -> r # gmapQ :: (forall d. Data d => d -> u) -> CreateMaterializedView meta -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> CreateMaterializedView meta -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> CreateMaterializedView meta -> m (CreateMaterializedView meta) # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateMaterializedView meta -> m (CreateMaterializedView meta) # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateMaterializedView meta -> m (CreateMaterializedView meta) # | |||||
Generic (CreateMaterializedView meta) # | |||||
Defined in Napkin.Types.Commands
from :: CreateMaterializedView meta -> Rep (CreateMaterializedView meta) x # to :: Rep (CreateMaterializedView meta) x -> CreateMaterializedView meta # | |||||
Show meta => Show (CreateMaterializedView meta) # | |||||
Defined in Napkin.Types.Commands showsPrec :: Int -> CreateMaterializedView meta -> ShowS # show :: CreateMaterializedView meta -> String # showList :: [CreateMaterializedView meta] -> ShowS # | |||||
Eq meta => Eq (CreateMaterializedView meta) # | |||||
Defined in Napkin.Types.Commands (==) :: CreateMaterializedView meta -> CreateMaterializedView meta -> Bool # (/=) :: CreateMaterializedView meta -> CreateMaterializedView meta -> Bool # | |||||
RenderSql (CreateMaterializedView MaterializedViewMeta) BigQuery # | |||||
Defined in Napkin.Render.BigQuery | |||||
RenderSql (CreateMaterializedView MaterializedViewMeta) Postgres # | |||||
Defined in Napkin.Render.Postgres | |||||
RenderSql (CreateMaterializedView SqliteMaterializedViewMeta) Sqlite # | |||||
Defined in Napkin.Render.Sqlite | |||||
RenderSql (CreateMaterializedView ()) Redshift # | |||||
Defined in Napkin.Render.Redshift | |||||
Command (CreateMaterializedView MaterializedViewMeta) () BigQuery # | |||||
Defined in Napkin.Run.BigQuery execCommand :: MonadNapkin BigQuery m => BackendConn BigQuery -> CreateMaterializedView MaterializedViewMeta -> m () # | |||||
Command (CreateMaterializedView MsSqlMaterializedViewMeta) () MsSql # | |||||
Defined in Napkin.Run.MsSql execCommand :: MonadNapkin MsSql m => BackendConn MsSql -> CreateMaterializedView MsSqlMaterializedViewMeta -> m () # | |||||
Command (CreateMaterializedView MaterializedViewMeta) () Postgres # | |||||
Defined in Napkin.Run.Postgres execCommand :: MonadNapkin Postgres m => BackendConn Postgres -> CreateMaterializedView MaterializedViewMeta -> m () # | |||||
Command (CreateMaterializedView SqliteMaterializedViewMeta) () Sqlite # | |||||
Defined in Napkin.Run.Sqlite execCommand :: MonadNapkin Sqlite m => BackendConn Sqlite -> CreateMaterializedView SqliteMaterializedViewMeta -> m () # | |||||
Command (CreateMaterializedView ()) () Redshift # | |||||
Defined in Napkin.Run.Redshift execCommand :: MonadNapkin Redshift m => BackendConn Redshift -> CreateMaterializedView () -> m () # | |||||
type Rep (CreateMaterializedView meta) # | |||||
Defined in Napkin.Types.Commands type Rep (CreateMaterializedView meta) = D1 ('MetaData "CreateMaterializedView" "Napkin.Types.Commands" "napkin-1.0.0-5YkWAC9Wc776PT0LDghaFb" 'False) (C1 ('MetaCons "CreateMaterializedView" 'PrefixI 'True) (S1 ('MetaSel ('Just "cmvMeta") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 meta) :*: (S1 ('MetaSel ('Just "cmvName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Ref Table)) :*: S1 ('MetaSel ('Just "cmvQuery") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Query)))) |
data GetRelationSchema #
Instances
Data GetRelationSchema # | |||||
Defined in Napkin.Types.Commands gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> GetRelationSchema -> c GetRelationSchema # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c GetRelationSchema # toConstr :: GetRelationSchema -> Constr # dataTypeOf :: GetRelationSchema -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c GetRelationSchema) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c GetRelationSchema) # gmapT :: (forall b. Data b => b -> b) -> GetRelationSchema -> GetRelationSchema # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> GetRelationSchema -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> GetRelationSchema -> r # gmapQ :: (forall d. Data d => d -> u) -> GetRelationSchema -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> GetRelationSchema -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> GetRelationSchema -> m GetRelationSchema # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> GetRelationSchema -> m GetRelationSchema # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> GetRelationSchema -> m GetRelationSchema # | |||||
Generic GetRelationSchema # | |||||
Defined in Napkin.Types.Commands
from :: GetRelationSchema -> Rep GetRelationSchema x # to :: Rep GetRelationSchema x -> GetRelationSchema # | |||||
Show GetRelationSchema # | |||||
Defined in Napkin.Types.Commands showsPrec :: Int -> GetRelationSchema -> ShowS # show :: GetRelationSchema -> String # showList :: [GetRelationSchema] -> ShowS # | |||||
Eq GetRelationSchema # | |||||
Defined in Napkin.Types.Commands (==) :: GetRelationSchema -> GetRelationSchema -> Bool # (/=) :: GetRelationSchema -> GetRelationSchema -> Bool # | |||||
Command GetRelationSchema [BackendSchemaField BigQuery] BigQuery # | |||||
Defined in Napkin.Run.BigQuery execCommand :: MonadNapkin BigQuery m => BackendConn BigQuery -> GetRelationSchema -> m [BackendSchemaField BigQuery] # | |||||
Command GetRelationSchema [BackendSchemaField MsSql] MsSql # | |||||
Defined in Napkin.Run.MsSql execCommand :: MonadNapkin MsSql m => BackendConn MsSql -> GetRelationSchema -> m [BackendSchemaField MsSql] # | |||||
Command GetRelationSchema [BackendSchemaField Postgres] Postgres # | |||||
Defined in Napkin.Run.Postgres execCommand :: MonadNapkin Postgres m => BackendConn Postgres -> GetRelationSchema -> m [BackendSchemaField Postgres] # | |||||
Command GetRelationSchema [BackendSchemaField Redshift] Redshift # | |||||
Defined in Napkin.Run.Redshift execCommand :: MonadNapkin Redshift m => BackendConn Redshift -> GetRelationSchema -> m [BackendSchemaField Redshift] # | |||||
Command GetRelationSchema [BackendSchemaField Sqlite] Sqlite # | |||||
Defined in Napkin.Run.Sqlite execCommand :: MonadNapkin Sqlite m => BackendConn Sqlite -> GetRelationSchema -> m [BackendSchemaField Sqlite] # | |||||
type Rep GetRelationSchema # | |||||
Defined in Napkin.Types.Commands type Rep GetRelationSchema = D1 ('MetaData "GetRelationSchema" "Napkin.Types.Commands" "napkin-1.0.0-5YkWAC9Wc776PT0LDghaFb" 'False) (C1 ('MetaCons "GetRelationSchema" 'PrefixI 'True) (S1 ('MetaSel ('Just "grsRelation") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Relation) :*: S1 ('MetaSel ('Just "grsTempTable") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Ref Table)))) |
newtype NormalizeTableNames #
Instances
Data NormalizeTableNames # | |||||
Defined in Napkin.Types.Commands gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> NormalizeTableNames -> c NormalizeTableNames # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c NormalizeTableNames # toConstr :: NormalizeTableNames -> Constr # dataTypeOf :: NormalizeTableNames -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c NormalizeTableNames) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c NormalizeTableNames) # gmapT :: (forall b. Data b => b -> b) -> NormalizeTableNames -> NormalizeTableNames # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> NormalizeTableNames -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> NormalizeTableNames -> r # gmapQ :: (forall d. Data d => d -> u) -> NormalizeTableNames -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> NormalizeTableNames -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> NormalizeTableNames -> m NormalizeTableNames # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> NormalizeTableNames -> m NormalizeTableNames # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> NormalizeTableNames -> m NormalizeTableNames # | |||||
Generic NormalizeTableNames # | |||||
Defined in Napkin.Types.Commands
from :: NormalizeTableNames -> Rep NormalizeTableNames x # to :: Rep NormalizeTableNames x -> NormalizeTableNames # | |||||
Show NormalizeTableNames # | |||||
Defined in Napkin.Types.Commands showsPrec :: Int -> NormalizeTableNames -> ShowS # show :: NormalizeTableNames -> String # showList :: [NormalizeTableNames] -> ShowS # | |||||
Eq NormalizeTableNames # | |||||
Defined in Napkin.Types.Commands (==) :: NormalizeTableNames -> NormalizeTableNames -> Bool # (/=) :: NormalizeTableNames -> NormalizeTableNames -> Bool # | |||||
Command NormalizeTableNames (Map (Ref Table) NormalizedTable) BigQuery # | |||||
Defined in Napkin.Run.BigQuery execCommand :: MonadNapkin BigQuery m => BackendConn BigQuery -> NormalizeTableNames -> m (Map (Ref Table) NormalizedTable) # | |||||
Command NormalizeTableNames (Map (Ref Table) NormalizedTable) MsSql # | |||||
Defined in Napkin.Run.MsSql execCommand :: MonadNapkin MsSql m => BackendConn MsSql -> NormalizeTableNames -> m (Map (Ref Table) NormalizedTable) # | |||||
Command NormalizeTableNames (Map (Ref Table) NormalizedTable) Postgres # | |||||
Defined in Napkin.Run.Postgres execCommand :: MonadNapkin Postgres m => BackendConn Postgres -> NormalizeTableNames -> m (Map (Ref Table) NormalizedTable) # | |||||
Command NormalizeTableNames (Map (Ref Table) NormalizedTable) Redshift # | |||||
Defined in Napkin.Run.Redshift execCommand :: MonadNapkin Redshift m => BackendConn Redshift -> NormalizeTableNames -> m (Map (Ref Table) NormalizedTable) # | |||||
Command NormalizeTableNames (Map (Ref Table) NormalizedTable) Sqlite # | |||||
Defined in Napkin.Run.Sqlite execCommand :: MonadNapkin Sqlite m => BackendConn Sqlite -> NormalizeTableNames -> m (Map (Ref Table) NormalizedTable) # | |||||
type Rep NormalizeTableNames # | |||||
Defined in Napkin.Types.Commands type Rep NormalizeTableNames = D1 ('MetaData "NormalizeTableNames" "Napkin.Types.Commands" "napkin-1.0.0-5YkWAC9Wc776PT0LDghaFb" 'True) (C1 ('MetaCons "NormalizeTableNames" 'PrefixI 'True) (S1 ('MetaSel ('Just "_ntnTables") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Set (Ref Table))))) |
module Napkin.Types.Commands.Grant