napkin-0.5.9
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 #

Read GetRelationSchema # 
Instance details

Defined in Napkin.Types.Commands

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 #

Read CheckTableExists # 
Instance details

Defined in Napkin.Types.Commands

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 #

Read DeleteFrom # 
Instance details

Defined in Napkin.Types.Commands

Show DeleteFrom # 
Instance details

Defined in Napkin.Types.Commands

TableRef DeleteFrom # 
Instance details

Defined in Napkin.Types.Commands

CommandDescr DeleteFrom Sqlite # 
Instance details

Defined in Napkin.Render.Sqlite

CommandDescr DeleteFrom Redshift # 
Instance details

Defined in Napkin.Render.Redshift

CommandDescr DeleteFrom Postgres # 
Instance details

Defined in Napkin.Render.Postgres

CommandDescr DeleteFrom BigQuery # 
Instance details

Defined in Napkin.Render.BigQuery

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 #

Read InsertIntoQuery # 
Instance details

Defined in Napkin.Types.Commands

Show InsertIntoQuery # 
Instance details

Defined in Napkin.Types.Commands

TableRef InsertIntoQuery # 
Instance details

Defined in Napkin.Types.Commands

CommandDescr InsertIntoQuery Sqlite # 
Instance details

Defined in Napkin.Render.Sqlite

CommandDescr InsertIntoQuery Redshift # 
Instance details

Defined in Napkin.Render.Redshift

CommandDescr InsertIntoQuery Postgres # 
Instance details

Defined in Napkin.Render.Postgres

CommandDescr InsertIntoQuery BigQuery # 
Instance details

Defined in Napkin.Render.BigQuery

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 #

Read DropTable # 
Instance details

Defined in Napkin.Types.Commands

Show DropTable # 
Instance details

Defined in Napkin.Types.Commands

CommandDescr DropTable Sqlite # 
Instance details

Defined in Napkin.Render.Sqlite

CommandDescr DropTable Redshift # 
Instance details

Defined in Napkin.Render.Redshift

CommandDescr DropTable Postgres # 
Instance details

Defined in Napkin.Render.Postgres

CommandDescr DropTable BigQuery # 
Instance details

Defined in Napkin.Render.BigQuery

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 ()) DropTable # 
Instance details

Defined in Napkin.Types.Commands

Drop (CreateTableAs TableMeta) DropTable # 
Instance details

Defined in Napkin.Types.Redshift

Drop (CreateTableAs TableMeta) DropTable # 
Instance details

Defined in Napkin.Types.BigQuery

data DropView #

Drop a table

Constructors

DropView 

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 #

Read DropView # 
Instance details

Defined in Napkin.Types.Commands

Show DropView # 
Instance details

Defined in Napkin.Types.Commands

TableRef DropView # 
Instance details

Defined in Napkin.Types.Commands

Drop CreateViewAs DropView # 
Instance details

Defined in Napkin.Types.Commands

CommandDescr DropView Sqlite # 
Instance details

Defined in Napkin.Render.Sqlite

CommandDescr DropView Redshift # 
Instance details

Defined in Napkin.Render.Redshift

CommandDescr DropView Postgres # 
Instance details

Defined in Napkin.Render.Postgres

CommandDescr DropView BigQuery # 
Instance details

Defined in Napkin.Render.BigQuery

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

data CreateViewAs #

Constructors

CreateViewAs 

Instances

Instances details
Eq CreateViewAs # 
Instance details

Defined in Napkin.Types.Commands

Data CreateViewAs # 
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 -> c CreateViewAs #

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

toConstr :: CreateViewAs -> Constr #

dataTypeOf :: CreateViewAs -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateViewAs # 
Instance details

Defined in Napkin.Types.Commands

Show CreateViewAs # 
Instance details

Defined in Napkin.Types.Commands

AsRelation CreateViewAs # 
Instance details

Defined in Napkin.Types.Commands

HasDeps CreateViewAs # 
Instance details

Defined in Napkin.Types.Commands

TableRef CreateViewAs # 
Instance details

Defined in Napkin.Types.Commands

Drop CreateViewAs DropView # 
Instance details

Defined in Napkin.Types.Commands

CommandDescr CreateViewAs Sqlite # 
Instance details

Defined in Napkin.Render.Sqlite

CommandDescr CreateViewAs Redshift # 
Instance details

Defined in Napkin.Render.Redshift

CommandDescr CreateViewAs Postgres # 
Instance details

Defined in Napkin.Render.Postgres

CommandDescr CreateViewAs BigQuery # 
Instance details

Defined in Napkin.Render.BigQuery

RenderSql CreateViewAs Sqlite # 
Instance details

Defined in Napkin.Render.Sqlite

RenderSql CreateViewAs Redshift # 
Instance details

Defined in Napkin.Render.Redshift

RenderSql CreateViewAs Postgres # 
Instance details

Defined in Napkin.Render.Postgres

RenderSql CreateViewAs BigQuery #

Debug the underlying query; BigQuery can't create views via SQL.

Instance details

Defined in Napkin.Render.BigQuery

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 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 #

Read CopyTable # 
Instance details

Defined in Napkin.Types.Commands

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 #

Read RenameTable # 
Instance details

Defined in Napkin.Types.Commands

Show RenameTable # 
Instance details

Defined in Napkin.Types.Commands

CommandDescr RenameTable Sqlite # 
Instance details

Defined in Napkin.Render.Sqlite

CommandDescr RenameTable Redshift # 
Instance details

Defined in Napkin.Render.Redshift

CommandDescr RenameTable Postgres # 
Instance details

Defined in Napkin.Render.Postgres

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) #

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

Defined in Napkin.Types.Commands

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

HasDeps (CreateTableAs m) # 
Instance details

Defined in Napkin.Types.Commands

TableRef (CreateTableAs m) # 
Instance details

Defined in Napkin.Types.Commands

Drop (CreateTableAs ()) DropTable # 
Instance details

Defined in Napkin.Types.Commands

Drop (CreateTableAs TableMeta) DropTable # 
Instance details

Defined in Napkin.Types.Redshift

Drop (CreateTableAs TableMeta) DropTable # 
Instance details

Defined in Napkin.Types.BigQuery

CommandDescr (CreateTableAs ()) Sqlite #

Command descriptions

Instance details

Defined in Napkin.Render.Sqlite

CommandDescr (CreateTableAs ()) Redshift # 
Instance details

Defined in Napkin.Render.Redshift

CommandDescr (CreateTableAs ()) Postgres #

Command descriptions

Instance details

Defined in Napkin.Render.Postgres

CommandDescr (CreateTableAs ()) BigQuery # 
Instance details

Defined in Napkin.Render.BigQuery

CommandDescr (CreateTableAs TableMeta) Redshift #

Command descriptions

Instance details

Defined in Napkin.Render.Redshift

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 ()) Postgres #

Commands

Instance details

Defined in Napkin.Render.Postgres

Methods

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

RenderSql (CreateTableAs ()) BigQuery #

Debug the underlying query; BigQuery can't create tables via SQL.

Instance details

Defined in Napkin.Render.BigQuery

Methods

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

RenderSql (CreateTableAs TableMeta) Redshift #

Commands

Instance details

Defined in Napkin.Render.Redshift

RenderSql (CreateTableAs TableMeta) BigQuery # 
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 ()) Int64 Postgres # 
Instance details

Defined in Napkin.Run.Postgres

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) Job BigQuery # 
Instance details

Defined in Napkin.Run.BigQuery

class HasCreateTableAs 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

Associated Types

type BackendTableMeta bk #

Instances

Instances details
HasCreateTableAs Sqlite # 
Instance details

Defined in Napkin.Types.Sqlite

Associated Types

type BackendTableMeta Sqlite #

HasCreateTableAs Redshift # 
Instance details

Defined in Napkin.Types.Redshift

Associated Types

type BackendTableMeta Redshift #

HasCreateTableAs Postgres # 
Instance details

Defined in Napkin.Types.Postgres

Associated Types

type BackendTableMeta Postgres #

HasCreateTableAs BigQuery # 
Instance details

Defined in Napkin.Types.BigQuery

Associated Types

type BackendTableMeta 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 #