napkin-0.5.12
Copyright(c) Soostone Inc 2020
LicenseAllRightsReserved
Stabilityexperimental
PortabilityPOSIX
Safe HaskellNone
LanguageHaskell2010

Napkin.Types.Commands

Description

 
Synopsis

Documentation

newtype GetRelationSchema #

Constructors

GetRelationSchema 

Instances

Instances details
Eq GetRelationSchema # 
Instance details

Defined in Napkin.Types.Commands

Data GetRelationSchema # 
Instance details

Defined in Napkin.Types.Commands

Methods

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 #

Show GetRelationSchema # 
Instance details

Defined in Napkin.Types.Commands

Command GetRelationSchema (Fields Field) Sqlite # 
Instance details

Defined in Napkin.Run.Sqlite

Command GetRelationSchema (Fields Field) Redshift # 
Instance details

Defined in Napkin.Run.Redshift

Command GetRelationSchema (Fields Field) Postgres # 
Instance details

Defined in Napkin.Run.Postgres

Command GetRelationSchema (Fields Field) BigQuery # 
Instance details

Defined in Napkin.Run.BigQuery

newtype CheckTableExists #

Constructors

CheckTableExists 

Fields

Instances

Instances details
Eq CheckTableExists # 
Instance details

Defined in Napkin.Types.Commands

Data CheckTableExists # 
Instance details

Defined in Napkin.Types.Commands

Methods

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 #

Show CheckTableExists # 
Instance details

Defined in Napkin.Types.Commands

Command CheckTableExists Bool Sqlite # 
Instance details

Defined in Napkin.Run.Sqlite

Command CheckTableExists Bool Redshift # 
Instance details

Defined in Napkin.Run.Redshift

Command CheckTableExists Bool Postgres # 
Instance details

Defined in Napkin.Run.Postgres

Command CheckTableExists Bool BigQuery # 
Instance details

Defined in Napkin.Run.BigQuery

data DeleteFrom #

TODO: Add in the USING clause

Constructors

DeleteFrom 

Fields

Instances

Instances details
Eq DeleteFrom # 
Instance details

Defined in Napkin.Types.Commands

Data DeleteFrom # 
Instance details

Defined in Napkin.Types.Commands

Methods

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 #

Show DeleteFrom # 
Instance details

Defined in Napkin.Types.Commands

TableRef DeleteFrom # 
Instance details

Defined in Napkin.Types.Commands

RenderSql DeleteFrom Sqlite # 
Instance details

Defined in Napkin.Render.Sqlite

Methods

renderSql :: Sqlite -> DeleteFrom -> Doc #

RenderSql DeleteFrom Redshift # 
Instance details

Defined in Napkin.Render.Redshift

RenderSql DeleteFrom Postgres # 
Instance details

Defined in Napkin.Render.Postgres

RenderSql DeleteFrom BigQuery # 
Instance details

Defined in Napkin.Render.BigQuery

Command DeleteFrom Int Sqlite # 
Instance details

Defined in Napkin.Run.Sqlite

Command DeleteFrom Int64 Redshift # 
Instance details

Defined in Napkin.Run.Redshift

Command DeleteFrom Int64 Postgres # 
Instance details

Defined in Napkin.Run.Postgres

Command DeleteFrom Job BigQuery # 
Instance details

Defined in Napkin.Run.BigQuery

data InsertIntoQuery #

Constructors

InsertIntoQuery 

Instances

Instances details
Eq InsertIntoQuery # 
Instance details

Defined in Napkin.Types.Commands

Data InsertIntoQuery # 
Instance details

Defined in Napkin.Types.Commands

Methods

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 #

Show InsertIntoQuery # 
Instance details

Defined in Napkin.Types.Commands

TableRef InsertIntoQuery # 
Instance details

Defined in Napkin.Types.Commands

RenderSql InsertIntoQuery Sqlite # 
Instance details

Defined in Napkin.Render.Sqlite

RenderSql InsertIntoQuery Redshift # 
Instance details

Defined in Napkin.Render.Redshift

RenderSql InsertIntoQuery Postgres # 
Instance details

Defined in Napkin.Render.Postgres

RenderSql InsertIntoQuery BigQuery # 
Instance details

Defined in Napkin.Render.BigQuery

Command InsertIntoQuery Int Sqlite # 
Instance details

Defined in Napkin.Run.Sqlite

Command InsertIntoQuery Int64 Redshift # 
Instance details

Defined in Napkin.Run.Redshift

Command InsertIntoQuery Int64 Postgres # 
Instance details

Defined in Napkin.Run.Postgres

Command InsertIntoQuery Job BigQuery # 
Instance details

Defined in Napkin.Run.BigQuery

data DropTable #

Drop a table

Constructors

DropTable 

Instances

Instances details
Eq DropTable # 
Instance details

Defined in Napkin.Types.Commands

Data DropTable # 
Instance details

Defined in Napkin.Types.Commands

Methods

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 #

Show DropTable # 
Instance details

Defined in Napkin.Types.Commands

RenderSql DropTable Sqlite # 
Instance details

Defined in Napkin.Render.Sqlite

Methods

renderSql :: Sqlite -> DropTable -> Doc #

RenderSql DropTable Redshift # 
Instance details

Defined in Napkin.Render.Redshift

Methods

renderSql :: Redshift -> DropTable -> Doc #

RenderSql DropTable Postgres # 
Instance details

Defined in Napkin.Render.Postgres

Methods

renderSql :: Postgres -> DropTable -> Doc #

Command DropTable Int Sqlite # 
Instance details

Defined in Napkin.Run.Sqlite

Command DropTable Int64 Redshift # 
Instance details

Defined in Napkin.Run.Redshift

Command DropTable Int64 Postgres # 
Instance details

Defined in Napkin.Run.Postgres

Command DropTable () BigQuery # 
Instance details

Defined in Napkin.Run.BigQuery

Drop (CreateTableAs meta) DropTable # 
Instance details

Defined in Napkin.Types.Commands

data DropView #

Drop a table

Instances

Instances details
Eq DropView # 
Instance details

Defined in Napkin.Types.Commands

Data DropView # 
Instance details

Defined in Napkin.Types.Commands

Methods

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 #

Show DropView # 
Instance details

Defined in Napkin.Types.Commands

TableRef DropView # 
Instance details

Defined in Napkin.Types.Commands

RenderSql DropView Sqlite # 
Instance details

Defined in Napkin.Render.Sqlite

Methods

renderSql :: Sqlite -> DropView -> Doc #

RenderSql DropView Redshift # 
Instance details

Defined in Napkin.Render.Redshift

Methods

renderSql :: Redshift -> DropView -> Doc #

RenderSql DropView Postgres # 
Instance details

Defined in Napkin.Render.Postgres

Methods

renderSql :: Postgres -> DropView -> Doc #

Command DropView Int Sqlite # 
Instance details

Defined in Napkin.Run.Sqlite

Command DropView Int64 Redshift # 
Instance details

Defined in Napkin.Run.Redshift

Command DropView Int64 Postgres # 
Instance details

Defined in Napkin.Run.Postgres

Command DropView () BigQuery # 
Instance details

Defined in Napkin.Run.BigQuery

Drop (CreateViewAs meta) DropView # 
Instance details

Defined in Napkin.Types.Commands

data CreateMaterializedViewAs meta #

Instances

Instances details
Eq meta => Eq (CreateMaterializedViewAs meta) # 
Instance details

Defined in Napkin.Types.Commands

Data meta => Data (CreateMaterializedViewAs meta) # 
Instance details

Defined in Napkin.Types.Commands

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CreateMaterializedViewAs meta -> c (CreateMaterializedViewAs meta) #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c (CreateMaterializedViewAs meta) #

toConstr :: CreateMaterializedViewAs meta -> Constr #

dataTypeOf :: CreateMaterializedViewAs meta -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c (CreateMaterializedViewAs meta)) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c (CreateMaterializedViewAs meta)) #

gmapT :: (forall b. Data b => b -> b) -> CreateMaterializedViewAs meta -> CreateMaterializedViewAs meta #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CreateMaterializedViewAs meta -> r #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CreateMaterializedViewAs meta -> r #

gmapQ :: (forall d. Data d => d -> u) -> CreateMaterializedViewAs meta -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CreateMaterializedViewAs meta -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CreateMaterializedViewAs meta -> m (CreateMaterializedViewAs meta) #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateMaterializedViewAs meta -> m (CreateMaterializedViewAs meta) #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateMaterializedViewAs meta -> m (CreateMaterializedViewAs meta) #

Show meta => Show (CreateMaterializedViewAs meta) # 
Instance details

Defined in Napkin.Types.Commands

RenderSql (CreateMaterializedViewAs ()) Redshift # 
Instance details

Defined in Napkin.Render.Redshift

RenderSql (CreateMaterializedViewAs ()) BigQuery #

Used for dump command only; reportedly BigQuery can't create stuff via SQL.

Instance details

Defined in Napkin.Render.BigQuery

RenderSql (CreateMaterializedViewAs SqliteMaterializedViewMeta) Sqlite # 
Instance details

Defined in Napkin.Render.Sqlite

RenderSql (CreateMaterializedViewAs MaterializedViewMeta) Postgres # 
Instance details

Defined in Napkin.Render.Postgres

Command (CreateMaterializedViewAs ()) Int64 Redshift # 
Instance details

Defined in Napkin.Run.Redshift

Command (CreateMaterializedViewAs ()) Table BigQuery # 
Instance details

Defined in Napkin.Run.BigQuery

Command (CreateMaterializedViewAs SqliteMaterializedViewMeta) Int Sqlite # 
Instance details

Defined in Napkin.Run.Sqlite

Command (CreateMaterializedViewAs MaterializedViewMeta) Int64 Postgres # 
Instance details

Defined in Napkin.Run.Postgres

data CreateViewAs meta #

Constructors

CreateViewAs 

Fields

Instances

Instances details
Eq meta => Eq (CreateViewAs meta) # 
Instance details

Defined in Napkin.Types.Commands

Methods

(==) :: CreateViewAs meta -> CreateViewAs meta -> Bool #

(/=) :: CreateViewAs meta -> CreateViewAs meta -> Bool #

Data meta => Data (CreateViewAs meta) # 
Instance details

Defined in Napkin.Types.Commands

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CreateViewAs meta -> c (CreateViewAs meta) #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c (CreateViewAs meta) #

toConstr :: CreateViewAs meta -> Constr #

dataTypeOf :: CreateViewAs meta -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c (CreateViewAs meta)) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c (CreateViewAs meta)) #

gmapT :: (forall b. Data b => b -> b) -> CreateViewAs meta -> CreateViewAs meta #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CreateViewAs meta -> r #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CreateViewAs meta -> r #

gmapQ :: (forall d. Data d => d -> u) -> CreateViewAs meta -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CreateViewAs meta -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CreateViewAs meta -> m (CreateViewAs meta) #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateViewAs meta -> m (CreateViewAs meta) #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateViewAs meta -> m (CreateViewAs meta) #

Show meta => Show (CreateViewAs meta) # 
Instance details

Defined in Napkin.Types.Commands

Methods

showsPrec :: Int -> CreateViewAs meta -> ShowS #

show :: CreateViewAs meta -> String #

showList :: [CreateViewAs meta] -> ShowS #

AsRelation (CreateViewAs meta) # 
Instance details

Defined in Napkin.Types.Commands

Methods

asRelation :: CreateViewAs meta -> Relation #

TableRef (CreateViewAs meta) # 
Instance details

Defined in Napkin.Types.Commands

Methods

tableRef :: Lens' (CreateViewAs meta) (Ref Table) #

Drop (CreateViewAs meta) DropView # 
Instance details

Defined in Napkin.Types.Commands

RenderSql (CreateViewAs ()) Sqlite # 
Instance details

Defined in Napkin.Render.Sqlite

Methods

renderSql :: Sqlite -> CreateViewAs () -> Doc #

RenderSql (CreateViewAs ()) Redshift # 
Instance details

Defined in Napkin.Render.Redshift

Methods

renderSql :: Redshift -> CreateViewAs () -> Doc #

RenderSql (CreateViewAs ()) Postgres # 
Instance details

Defined in Napkin.Render.Postgres

Methods

renderSql :: Postgres -> CreateViewAs () -> Doc #

RenderSql (CreateViewAs ()) BigQuery #

Used for dump command only; reportedly BigQuery can't create stuff via SQL.

Instance details

Defined in Napkin.Render.BigQuery

Methods

renderSql :: BigQuery -> CreateViewAs () -> Doc #

Command (CreateViewAs ()) Int Sqlite # 
Instance details

Defined in Napkin.Run.Sqlite

Command (CreateViewAs ()) Int64 Redshift # 
Instance details

Defined in Napkin.Run.Redshift

Command (CreateViewAs ()) Int64 Postgres # 
Instance details

Defined in Napkin.Run.Postgres

Command (CreateViewAs ()) Table BigQuery # 
Instance details

Defined in Napkin.Run.BigQuery

data ViewType #

Instances

Instances details
Eq ViewType # 
Instance details

Defined in Napkin.Types.Commands

Data ViewType # 
Instance details

Defined in Napkin.Types.Commands

Methods

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 #

Show ViewType # 
Instance details

Defined in Napkin.Types.Commands

data CopyTable #

Constructors

CopyTable 

Fields

Instances

Instances details
Eq CopyTable # 
Instance details

Defined in Napkin.Types.Commands

Data CopyTable # 
Instance details

Defined in Napkin.Types.Commands

Methods

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 #

Show CopyTable # 
Instance details

Defined in Napkin.Types.Commands

Command CopyTable Int Sqlite # 
Instance details

Defined in Napkin.Run.Sqlite

Command CopyTable Int64 Redshift # 
Instance details

Defined in Napkin.Run.Redshift

Command CopyTable Int64 Postgres # 
Instance details

Defined in Napkin.Run.Postgres

Command CopyTable () BigQuery # 
Instance details

Defined in Napkin.Run.BigQuery

data RenameTable #

Constructors

RenameTable 

Fields

Instances

Instances details
Eq RenameTable # 
Instance details

Defined in Napkin.Types.Commands

Data RenameTable # 
Instance details

Defined in Napkin.Types.Commands

Methods

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 #

Show RenameTable # 
Instance details

Defined in Napkin.Types.Commands

RenderSql RenameTable Sqlite # 
Instance details

Defined in Napkin.Render.Sqlite

Methods

renderSql :: Sqlite -> RenameTable -> Doc #

RenderSql RenameTable Redshift # 
Instance details

Defined in Napkin.Render.Redshift

RenderSql RenameTable Postgres # 
Instance details

Defined in Napkin.Render.Postgres

Command RenameTable Int Sqlite # 
Instance details

Defined in Napkin.Run.Sqlite

Command RenameTable Int64 Redshift # 
Instance details

Defined in Napkin.Run.Redshift

Command RenameTable Int64 Postgres # 
Instance details

Defined in Napkin.Run.Postgres

Command RenameTable () BigQuery #

BQ implements rename via copy-then-drop

Instance details

Defined in Napkin.Run.BigQuery

data CreateTableAs meta #

Create table based on a query with variable metadata type, such as TableMeta

Constructors

CreateTableAs 

Fields

Instances

Instances details
Eq meta => Eq (CreateTableAs meta) # 
Instance details

Defined in Napkin.Types.Commands

Methods

(==) :: CreateTableAs meta -> CreateTableAs meta -> Bool #

(/=) :: CreateTableAs meta -> CreateTableAs meta -> Bool #

Data meta => Data (CreateTableAs meta) # 
Instance details

Defined in Napkin.Types.Commands

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CreateTableAs meta -> c (CreateTableAs meta) #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c (CreateTableAs meta) #

toConstr :: CreateTableAs meta -> Constr #

dataTypeOf :: CreateTableAs meta -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c (CreateTableAs meta)) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c (CreateTableAs meta)) #

gmapT :: (forall b. Data b => b -> b) -> CreateTableAs meta -> CreateTableAs meta #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CreateTableAs meta -> r #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CreateTableAs meta -> r #

gmapQ :: (forall d. Data d => d -> u) -> CreateTableAs meta -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CreateTableAs meta -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CreateTableAs meta -> m (CreateTableAs meta) #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateTableAs meta -> m (CreateTableAs meta) #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateTableAs meta -> m (CreateTableAs meta) #

Show meta => Show (CreateTableAs meta) # 
Instance details

Defined in Napkin.Types.Commands

Methods

showsPrec :: Int -> CreateTableAs meta -> ShowS #

show :: CreateTableAs meta -> String #

showList :: [CreateTableAs meta] -> ShowS #

MaybeQuery (CreateTableAs m) # 
Instance details

Defined in Napkin.Types.Commands

HasDefinition (CreateTableAs m) # 
Instance details

Defined in Napkin.Types.Commands

AsRelation (CreateTableAs m) # 
Instance details

Defined in Napkin.Types.Commands

TableRef (CreateTableAs m) # 
Instance details

Defined in Napkin.Types.Commands

Drop (CreateTableAs meta) DropTable # 
Instance details

Defined in Napkin.Types.Commands

RenderSql (CreateTableAs ()) Sqlite #

Commands

Instance details

Defined in Napkin.Render.Sqlite

Methods

renderSql :: Sqlite -> CreateTableAs () -> Doc #

RenderSql (CreateTableAs ()) Redshift # 
Instance details

Defined in Napkin.Render.Redshift

Methods

renderSql :: Redshift -> CreateTableAs () -> Doc #

RenderSql (CreateTableAs TableMeta) Redshift #

Commands

Instance details

Defined in Napkin.Render.Redshift

RenderSql (CreateTableAs TableMeta) Postgres #

Commands

Instance details

Defined in Napkin.Render.Postgres

RenderSql (CreateTableAs TableMeta) BigQuery #

Used for dump command only; reportedly BigQuery can't create stuff via SQL.

Instance details

Defined in Napkin.Render.BigQuery

Command (CreateTableAs ()) Int Sqlite # 
Instance details

Defined in Napkin.Run.Sqlite

Command (CreateTableAs ()) Int64 Redshift # 
Instance details

Defined in Napkin.Run.Redshift

Command (CreateTableAs ()) Job BigQuery # 
Instance details

Defined in Napkin.Run.BigQuery

Command (CreateTableAs TableMeta) Int64 Redshift # 
Instance details

Defined in Napkin.Run.Redshift

Command (CreateTableAs TableMeta) Int64 Postgres # 
Instance details

Defined in Napkin.Run.Postgres

Command (CreateTableAs TableMeta) Job BigQuery # 
Instance details

Defined in Napkin.Run.BigQuery

type family BackendViewMeta bk #

Instances

Instances details
type BackendViewMeta Sqlite # 
Instance details

Defined in Napkin.Types.Sqlite

type BackendViewMeta Redshift # 
Instance details

Defined in Napkin.Types.Redshift

type BackendViewMeta Postgres # 
Instance details

Defined in Napkin.Types.Postgres

type BackendViewMeta BigQuery # 
Instance details

Defined in Napkin.Types.BigQuery

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

Instances details
type BackendTableMeta Sqlite # 
Instance details

Defined in Napkin.Types.Sqlite

type BackendTableMeta Redshift # 
Instance details

Defined in Napkin.Types.Redshift

type BackendTableMeta Postgres # 
Instance details

Defined in Napkin.Types.Postgres

type BackendTableMeta BigQuery # 
Instance details

Defined in Napkin.Types.BigQuery

ctaMeta :: forall meta meta. Lens (CreateTableAs meta) (CreateTableAs meta) meta meta #

ctaName :: forall meta. Lens' (CreateTableAs meta) (Ref Table) #

ctaQuery :: forall meta. Lens' (CreateTableAs meta) Query #

cvaMeta :: forall meta meta. Lens (CreateViewAs meta) (CreateViewAs meta) meta meta #

cvaName :: forall meta. Lens' (CreateViewAs meta) (Ref Table) #

cvaQuery :: forall meta. Lens' (CreateViewAs meta) Query #

cmvaMeta :: forall meta meta. Lens (CreateMaterializedViewAs meta) (CreateMaterializedViewAs meta) meta meta #

class Drop a b | a -> b where #

Methods

dropCommand :: a -> b #

dropCascade :: a -> Lens' b Bool #

Instances

Instances details
Drop (CreateViewAs meta) DropView # 
Instance details

Defined in Napkin.Types.Commands

Drop (CreateTableAs meta) DropTable # 
Instance details

Defined in Napkin.Types.Commands