napkin-1.0.0
Safe HaskellNone
LanguageGHC2021

Napkin.Types.Commands

Synopsis

Documentation

newtype Prefix #

Constructors

Prefix 

Fields

Instances

Instances details
Data Prefix # 
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) -> 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 # 
Instance details

Defined in Napkin.Types.Commands

Buildable Prefix # 
Instance details

Defined in Napkin.Types.Commands

Methods

build :: Prefix -> Builder #

Eq Prefix # 
Instance details

Defined in Napkin.Types.Commands

Methods

(==) :: Prefix -> Prefix -> Bool #

(/=) :: Prefix -> Prefix -> Bool #

Ord Prefix # 
Instance details

Defined in Napkin.Types.Commands

data CreateTableDDL meta #

Constructors

CreateTableDDL 

Fields

Instances

Instances details
Data meta => Data (CreateTableDDL 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) -> CreateTableDDL meta -> c (CreateTableDDL meta) #

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

toConstr :: CreateTableDDL meta -> Constr #

dataTypeOf :: CreateTableDDL meta -> DataType #

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

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

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

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

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

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

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

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

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

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

Generic (CreateTableDDL meta) # 
Instance details

Defined in Napkin.Types.Commands

Associated Types

type Rep (CreateTableDDL meta) 
Instance details

Defined in Napkin.Types.Commands

type Rep (CreateTableDDL meta) = D1 ('MetaData "CreateTableDDL" "Napkin.Types.Commands" "napkin-1.0.0-5YkWAC9Wc776PT0LDghaFb" 'False) (C1 ('MetaCons "CreateTableDDL" 'PrefixI 'True) (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Ref Table)) :*: (S1 ('MetaSel ('Just "meta") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 meta) :*: S1 ('MetaSel ('Just "ddl") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Statement))))

Methods

from :: CreateTableDDL meta -> Rep (CreateTableDDL meta) x #

to :: Rep (CreateTableDDL meta) x -> CreateTableDDL meta #

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

Defined in Napkin.Types.Commands

Eq meta => Eq (CreateTableDDL meta) # 
Instance details

Defined in Napkin.Types.Commands

Methods

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

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

Command (CreateTableDDL TableMeta) () BigQuery # 
Instance details

Defined in Napkin.Run.BigQuery

Command (CreateTableDDL TableMeta) () MsSql # 
Instance details

Defined in Napkin.Run.MsSql

Command (CreateTableDDL TableMeta) () Postgres # 
Instance details

Defined in Napkin.Run.Postgres

Command (CreateTableDDL TableMeta) () Redshift # 
Instance details

Defined in Napkin.Run.Redshift

Command (CreateTableDDL ()) () Sqlite # 
Instance details

Defined in Napkin.Run.Sqlite

type Rep (CreateTableDDL meta) # 
Instance details

Defined in Napkin.Types.Commands

type Rep (CreateTableDDL meta) = D1 ('MetaData "CreateTableDDL" "Napkin.Types.Commands" "napkin-1.0.0-5YkWAC9Wc776PT0LDghaFb" 'False) (C1 ('MetaCons "CreateTableDDL" 'PrefixI 'True) (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Ref Table)) :*: (S1 ('MetaSel ('Just "meta") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 meta) :*: S1 ('MetaSel ('Just "ddl") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Statement))))

data InsertIntoTable #

Instances

Instances details
Data InsertIntoTable # 
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) -> 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 # 
Instance details

Defined in Napkin.Types.Commands

Associated Types

type Rep InsertIntoTable 
Instance details

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)))
Show InsertIntoTable # 
Instance details

Defined in Napkin.Types.Commands

Eq InsertIntoTable # 
Instance details

Defined in Napkin.Types.Commands

Command InsertIntoTable () BigQuery # 
Instance details

Defined in Napkin.Run.BigQuery

Command InsertIntoTable () MsSql # 
Instance details

Defined in Napkin.Run.MsSql

Command InsertIntoTable () Postgres # 
Instance details

Defined in Napkin.Run.Postgres

Command InsertIntoTable () Redshift # 
Instance details

Defined in Napkin.Run.Redshift

Command InsertIntoTable () Sqlite # 
Instance details

Defined in Napkin.Run.Sqlite

type Rep InsertIntoTable # 
Instance details

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

data CreateTable meta #

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

Constructors

CreateTable 

Fields

Instances

Instances details
Data meta => Data (CreateTable 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) -> 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) # 
Instance details

Defined in Napkin.Types.Commands

Associated Types

type Rep (CreateTable meta) 
Instance details

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

Methods

from :: CreateTable meta -> Rep (CreateTable meta) x #

to :: Rep (CreateTable meta) x -> CreateTable meta #

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

Defined in Napkin.Types.Commands

Methods

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

show :: CreateTable meta -> String #

showList :: [CreateTable meta] -> ShowS #

Eq meta => Eq (CreateTable meta) # 
Instance details

Defined in Napkin.Types.Commands

Methods

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

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

AsRelation (CreateTable m) # 
Instance details

Defined in Napkin.Types.Commands

HasDefinition (CreateTable m) # 
Instance details

Defined in Napkin.Types.Commands

MaybeQuery (CreateTable m) # 
Instance details

Defined in Napkin.Types.Commands

TableRef (CreateTable m) # 
Instance details

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

Instance details

Defined in Napkin.Render.BigQuery

RenderSql (CreateTable TableMeta) MsSql #

Commands

Instance details

Defined in Napkin.Render.MsSql

RenderSql (CreateTable TableMeta) Postgres #

Commands

Instance details

Defined in Napkin.Render.Postgres

RenderSql (CreateTable TableMeta) Redshift #

Commands

Instance details

Defined in Napkin.Render.Redshift

RenderSql (CreateTable ()) Redshift # 
Instance details

Defined in Napkin.Render.Redshift

Methods

renderSql :: Redshift -> CreateTable () -> ME Doc #

RenderSql (CreateTable ()) Sqlite #

Commands

Instance details

Defined in Napkin.Render.Sqlite

Methods

renderSql :: Sqlite -> CreateTable () -> ME Doc #

Command (CreateTable TableMeta) () BigQuery # 
Instance details

Defined in Napkin.Run.BigQuery

Command (CreateTable TableMeta) () MsSql # 
Instance details

Defined in Napkin.Run.MsSql

Command (CreateTable TableMeta) () Postgres # 
Instance details

Defined in Napkin.Run.Postgres

Command (CreateTable TableMeta) () Redshift # 
Instance details

Defined in Napkin.Run.Redshift

Command (CreateTable ()) () BigQuery # 
Instance details

Defined in Napkin.Run.BigQuery

Command (CreateTable ()) () Redshift # 
Instance details

Defined in Napkin.Run.Redshift

Command (CreateTable ()) () Sqlite # 
Instance details

Defined in Napkin.Run.Sqlite

type Rep (CreateTable meta) # 
Instance details

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

data DropTable #

Drop a table

Constructors

DropTable 

Instances

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

Generic DropTable # 
Instance details

Defined in Napkin.Types.Commands

Associated Types

type Rep DropTable 
Instance details

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

Defined in Napkin.Types.Commands

Eq DropTable # 
Instance details

Defined in Napkin.Types.Commands

RenderSql DropTable MsSql # 
Instance details

Defined in Napkin.Render.MsSql

Methods

renderSql :: MsSql -> DropTable -> ME Doc #

RenderSql DropTable Postgres # 
Instance details

Defined in Napkin.Render.Postgres

RenderSql DropTable Redshift # 
Instance details

Defined in Napkin.Render.Redshift

RenderSql DropTable Sqlite # 
Instance details

Defined in Napkin.Render.Sqlite

Methods

renderSql :: Sqlite -> DropTable -> ME Doc #

Command DropTable () BigQuery # 
Instance details

Defined in Napkin.Run.BigQuery

Command DropTable () MsSql # 
Instance details

Defined in Napkin.Run.MsSql

Command DropTable () Postgres # 
Instance details

Defined in Napkin.Run.Postgres

Command DropTable () Redshift # 
Instance details

Defined in Napkin.Run.Redshift

Command DropTable () Sqlite # 
Instance details

Defined in Napkin.Run.Sqlite

type Rep DropTable # 
Instance details

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 #

Constructors

CreateView 

Fields

Instances

Instances details
Data meta => Data (CreateView 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) -> 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) # 
Instance details

Defined in Napkin.Types.Commands

Associated Types

type Rep (CreateView meta) 
Instance details

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

Methods

from :: CreateView meta -> Rep (CreateView meta) x #

to :: Rep (CreateView meta) x -> CreateView meta #

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

Defined in Napkin.Types.Commands

Methods

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

show :: CreateView meta -> String #

showList :: [CreateView meta] -> ShowS #

Eq meta => Eq (CreateView meta) # 
Instance details

Defined in Napkin.Types.Commands

Methods

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

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

AsRelation (CreateView meta) # 
Instance details

Defined in Napkin.Types.Commands

Methods

asRelation :: CreateView meta -> Relation #

TableRef (CreateView meta) # 
Instance details

Defined in Napkin.Types.Commands

Methods

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

RenderSql (CreateView ViewMeta) BigQuery # 
Instance details

Defined in Napkin.Render.BigQuery

RenderSql (CreateView ()) MsSql # 
Instance details

Defined in Napkin.Render.MsSql

Methods

renderSql :: MsSql -> CreateView () -> ME Doc #

RenderSql (CreateView ()) Postgres # 
Instance details

Defined in Napkin.Render.Postgres

Methods

renderSql :: Postgres -> CreateView () -> ME Doc #

RenderSql (CreateView ()) Redshift # 
Instance details

Defined in Napkin.Render.Redshift

Methods

renderSql :: Redshift -> CreateView () -> ME Doc #

RenderSql (CreateView ()) Sqlite # 
Instance details

Defined in Napkin.Render.Sqlite

Methods

renderSql :: Sqlite -> CreateView () -> ME Doc #

Command (CreateView ViewMeta) () BigQuery # 
Instance details

Defined in Napkin.Run.BigQuery

Command (CreateView ()) () MsSql # 
Instance details

Defined in Napkin.Run.MsSql

Command (CreateView ()) () Postgres # 
Instance details

Defined in Napkin.Run.Postgres

Command (CreateView ()) () Redshift # 
Instance details

Defined in Napkin.Run.Redshift

Command (CreateView ()) () Sqlite # 
Instance details

Defined in Napkin.Run.Sqlite

type Rep (CreateView meta) # 
Instance details

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

data DropView #

Drop a table

Instances

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

Generic DropView # 
Instance details

Defined in Napkin.Types.Commands

Associated Types

type Rep DropView 
Instance details

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

Methods

from :: DropView -> Rep DropView x #

to :: Rep DropView x -> DropView #

Show DropView # 
Instance details

Defined in Napkin.Types.Commands

Eq DropView # 
Instance details

Defined in Napkin.Types.Commands

TableRef DropView # 
Instance details

Defined in Napkin.Types.Commands

RenderSql DropView MsSql # 
Instance details

Defined in Napkin.Render.MsSql

Methods

renderSql :: MsSql -> DropView -> ME Doc #

RenderSql DropView Postgres # 
Instance details

Defined in Napkin.Render.Postgres

Methods

renderSql :: Postgres -> DropView -> ME Doc #

RenderSql DropView Redshift # 
Instance details

Defined in Napkin.Render.Redshift

Methods

renderSql :: Redshift -> DropView -> ME Doc #

RenderSql DropView Sqlite # 
Instance details

Defined in Napkin.Render.Sqlite

Methods

renderSql :: Sqlite -> DropView -> ME Doc #

Command DropView () BigQuery # 
Instance details

Defined in Napkin.Run.BigQuery

Command DropView () MsSql # 
Instance details

Defined in Napkin.Run.MsSql

Command DropView () Postgres # 
Instance details

Defined in Napkin.Run.Postgres

Command DropView () Redshift # 
Instance details

Defined in Napkin.Run.Redshift

Command DropView () Sqlite # 
Instance details

Defined in Napkin.Run.Sqlite

type Rep DropView # 
Instance details

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

data AEDA #

Instances

Instances details
Data AEDA # 
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) -> AEDA -> c AEDA #

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

toConstr :: AEDA -> Constr #

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

Defined in Napkin.Types.Commands

Associated Types

type Rep AEDA 
Instance details

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

Methods

from :: AEDA -> Rep AEDA x #

to :: Rep AEDA x -> AEDA #

Show AEDA # 
Instance details

Defined in Napkin.Types.Commands

Methods

showsPrec :: Int -> AEDA -> ShowS #

show :: AEDA -> String #

showList :: [AEDA] -> ShowS #

Eq AEDA # 
Instance details

Defined in Napkin.Types.Commands

Methods

(==) :: AEDA -> AEDA -> Bool #

(/=) :: AEDA -> AEDA -> Bool #

Command AEDA TableDiagnostics BigQuery # 
Instance details

Defined in Napkin.Run.BigQuery

Command AEDA TableDiagnostics MsSql # 
Instance details

Defined in Napkin.Run.MsSql

Command AEDA TableDiagnostics Postgres # 
Instance details

Defined in Napkin.Run.Postgres

Command AEDA TableDiagnostics Redshift # 
Instance details

Defined in Napkin.Run.Redshift

Command AEDA TableDiagnostics Sqlite # 
Instance details

Defined in Napkin.Run.Sqlite

type Rep AEDA # 
Instance details

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 #

Constructors

ListTables 

Instances

Instances details
Data ListTables # 
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) -> 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 # 
Instance details

Defined in Napkin.Types.Commands

Associated Types

type Rep ListTables 
Instance details

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))))
Show ListTables # 
Instance details

Defined in Napkin.Types.Commands

Eq ListTables # 
Instance details

Defined in Napkin.Types.Commands

Command ListTables (Set ListedTable) BigQuery # 
Instance details

Defined in Napkin.Run.BigQuery

Command ListTables (Set ListedTable) MsSql # 
Instance details

Defined in Napkin.Run.MsSql

Command ListTables (Set ListedTable) Postgres # 
Instance details

Defined in Napkin.Run.Postgres

Command ListTables (Set ListedTable) Redshift # 
Instance details

Defined in Napkin.Run.Redshift

Command ListTables (Set ListedTable) Sqlite # 
Instance details

Defined in Napkin.Run.Sqlite

type Rep ListTables # 
Instance details

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

Instances details
type BackendTableMeta BigQuery # 
Instance details

Defined in Napkin.Types.BigQuery

type BackendTableMeta MsSql # 
Instance details

Defined in Napkin.Types.MsSql

type BackendTableMeta Postgres # 
Instance details

Defined in Napkin.Types.Postgres

type BackendTableMeta Redshift # 
Instance details

Defined in Napkin.Types.Redshift

type BackendTableMeta Sqlite # 
Instance details

Defined in Napkin.Types.Sqlite

data ViewType #

Instances

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

Generic ViewType # 
Instance details

Defined in Napkin.Types.Commands

Associated Types

type Rep ViewType 
Instance details

Defined in Napkin.Types.Commands

type Rep ViewType = D1 ('MetaData "ViewType" "Napkin.Types.Commands" "napkin-1.0.0-5YkWAC9Wc776PT0LDghaFb" 'False) (C1 ('MetaCons "StandardView" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MaterializedView" 'PrefixI 'False) (U1 :: Type -> Type))

Methods

from :: ViewType -> Rep ViewType x #

to :: Rep ViewType x -> ViewType #

Show ViewType # 
Instance details

Defined in Napkin.Types.Commands

Eq ViewType # 
Instance details

Defined in Napkin.Types.Commands

type Rep ViewType # 
Instance details

Defined in Napkin.Types.Commands

type Rep ViewType = D1 ('MetaData "ViewType" "Napkin.Types.Commands" "napkin-1.0.0-5YkWAC9Wc776PT0LDghaFb" 'False) (C1 ('MetaCons "StandardView" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MaterializedView" 'PrefixI 'False) (U1 :: Type -> Type))

type family BackendViewMeta bk #

Instances

Instances details
type BackendViewMeta BigQuery # 
Instance details

Defined in Napkin.Types.BigQuery

type BackendViewMeta MsSql # 
Instance details

Defined in Napkin.Types.MsSql

type BackendViewMeta Postgres # 
Instance details

Defined in Napkin.Types.Postgres

type BackendViewMeta Redshift # 
Instance details

Defined in Napkin.Types.Redshift

type BackendViewMeta Sqlite # 
Instance details

Defined in Napkin.Types.Sqlite

data TableWriteStrategy #

csv importing/copy option

Instances

Instances details
FromJSON TableWriteStrategy # 
Instance details

Defined in Napkin.Types.Commands

ToJSON TableWriteStrategy # 
Instance details

Defined in Napkin.Types.Commands

Data TableWriteStrategy # 
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) -> 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 # 
Instance details

Defined in Napkin.Types.Commands

Enum TableWriteStrategy # 
Instance details

Defined in Napkin.Types.Commands

Generic TableWriteStrategy # 
Instance details

Defined in Napkin.Types.Commands

Associated Types

type Rep TableWriteStrategy 
Instance details

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)))
Show TableWriteStrategy # 
Instance details

Defined in Napkin.Types.Commands

Eq TableWriteStrategy # 
Instance details

Defined in Napkin.Types.Commands

type Rep TableWriteStrategy # 
Instance details

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

Constructors

CheckTableExists 

Fields

Instances

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

Generic CheckTableExists # 
Instance details

Defined in Napkin.Types.Commands

Associated Types

type Rep CheckTableExists 
Instance details

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))))
Show CheckTableExists # 
Instance details

Defined in Napkin.Types.Commands

Eq CheckTableExists # 
Instance details

Defined in Napkin.Types.Commands

Command CheckTableExists Bool BigQuery # 
Instance details

Defined in Napkin.Run.BigQuery

Command CheckTableExists Bool MsSql # 
Instance details

Defined in Napkin.Run.MsSql

Command CheckTableExists Bool Postgres # 
Instance details

Defined in Napkin.Run.Postgres

Command CheckTableExists Bool Redshift # 
Instance details

Defined in Napkin.Run.Redshift

Command CheckTableExists Bool Sqlite # 
Instance details

Defined in Napkin.Run.Sqlite

type Rep CheckTableExists # 
Instance details

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 #

Constructors

GetTableKind 

Fields

Instances

Instances details
Data GetTableKind # 
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) -> 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 # 
Instance details

Defined in Napkin.Types.Commands

Associated Types

type Rep GetTableKind 
Instance details

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))))
Show GetTableKind # 
Instance details

Defined in Napkin.Types.Commands

Eq GetTableKind # 
Instance details

Defined in Napkin.Types.Commands

Command GetTableKind TableKind BigQuery # 
Instance details

Defined in Napkin.Run.BigQuery

Command GetTableKind TableKind MsSql # 
Instance details

Defined in Napkin.Run.MsSql

Command GetTableKind TableKind Postgres # 
Instance details

Defined in Napkin.Run.Postgres

Command GetTableKind TableKind Redshift # 
Instance details

Defined in Napkin.Run.Redshift

Command GetTableKind TableKind Sqlite # 
Instance details

Defined in Napkin.Run.Sqlite

type Rep GetTableKind # 
Instance details

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

Constructors

RenameTable 

Fields

Instances

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

Generic RenameTable # 
Instance details

Defined in Napkin.Types.Commands

Associated Types

type Rep RenameTable 
Instance details

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))))
Show RenameTable # 
Instance details

Defined in Napkin.Types.Commands

Eq RenameTable # 
Instance details

Defined in Napkin.Types.Commands

RenderSql RenameTable MsSql # 
Instance details

Defined in Napkin.Render.MsSql

Methods

renderSql :: MsSql -> RenameTable -> ME Doc #

RenderSql RenameTable Postgres # 
Instance details

Defined in Napkin.Render.Postgres

RenderSql RenameTable Redshift # 
Instance details

Defined in Napkin.Render.Redshift

RenderSql RenameTable Sqlite # 
Instance details

Defined in Napkin.Render.Sqlite

Command RenameTable () BigQuery #

BQ implements rename via copy-then-drop

Instance details

Defined in Napkin.Run.BigQuery

Command RenameTable () MsSql # 
Instance details

Defined in Napkin.Run.MsSql

Command RenameTable () Postgres # 
Instance details

Defined in Napkin.Run.Postgres

Command RenameTable () Redshift # 
Instance details

Defined in Napkin.Run.Redshift

Command RenameTable () Sqlite # 
Instance details

Defined in Napkin.Run.Sqlite

type Rep RenameTable # 
Instance details

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

data CopyTable #

Instances

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

Generic CopyTable # 
Instance details

Defined in Napkin.Types.Commands

Associated Types

type Rep CopyTable 
Instance details

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))))
Show CopyTable # 
Instance details

Defined in Napkin.Types.Commands

Eq CopyTable # 
Instance details

Defined in Napkin.Types.Commands

Command CopyTable () BigQuery # 
Instance details

Defined in Napkin.Run.BigQuery

Command CopyTable () MsSql # 
Instance details

Defined in Napkin.Run.MsSql

Command CopyTable () Postgres # 
Instance details

Defined in Napkin.Run.Postgres

Command CopyTable () Redshift # 
Instance details

Defined in Napkin.Run.Redshift

Command CopyTable () Sqlite # 
Instance details

Defined in Napkin.Run.Sqlite

type Rep CopyTable # 
Instance details

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 #

Constructors

InsertIntoQuery 

Instances

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

Generic InsertIntoQuery # 
Instance details

Defined in Napkin.Types.Commands

Associated Types

type Rep InsertIntoQuery 
Instance details

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)))
Show InsertIntoQuery # 
Instance details

Defined in Napkin.Types.Commands

Eq InsertIntoQuery # 
Instance details

Defined in Napkin.Types.Commands

TableRef InsertIntoQuery # 
Instance details

Defined in Napkin.Types.Commands

RenderSql InsertIntoQuery BigQuery # 
Instance details

Defined in Napkin.Render.BigQuery

RenderSql InsertIntoQuery MsSql # 
Instance details

Defined in Napkin.Render.MsSql

RenderSql InsertIntoQuery Postgres # 
Instance details

Defined in Napkin.Render.Postgres

RenderSql InsertIntoQuery Redshift # 
Instance details

Defined in Napkin.Render.Redshift

RenderSql InsertIntoQuery Sqlite # 
Instance details

Defined in Napkin.Render.Sqlite

Command InsertIntoQuery () BigQuery # 
Instance details

Defined in Napkin.Run.BigQuery

Command InsertIntoQuery () MsSql # 
Instance details

Defined in Napkin.Run.MsSql

Command InsertIntoQuery () Postgres # 
Instance details

Defined in Napkin.Run.Postgres

Command InsertIntoQuery () Redshift # 
Instance details

Defined in Napkin.Run.Redshift

Command InsertIntoQuery () Sqlite # 
Instance details

Defined in Napkin.Run.Sqlite

type Rep InsertIntoQuery # 
Instance details

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

Constructors

DeleteFrom 

Fields

Instances

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

Generic DeleteFrom # 
Instance details

Defined in Napkin.Types.Commands

Associated Types

type Rep DeleteFrom 
Instance details

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)))
Show DeleteFrom # 
Instance details

Defined in Napkin.Types.Commands

Eq DeleteFrom # 
Instance details

Defined in Napkin.Types.Commands

TableRef DeleteFrom # 
Instance details

Defined in Napkin.Types.Commands

RenderSql DeleteFrom BigQuery # 
Instance details

Defined in Napkin.Render.BigQuery

RenderSql DeleteFrom MsSql # 
Instance details

Defined in Napkin.Render.MsSql

Methods

renderSql :: MsSql -> DeleteFrom -> ME Doc #

RenderSql DeleteFrom Postgres # 
Instance details

Defined in Napkin.Render.Postgres

RenderSql DeleteFrom Redshift # 
Instance details

Defined in Napkin.Render.Redshift

RenderSql DeleteFrom Sqlite # 
Instance details

Defined in Napkin.Render.Sqlite

Methods

renderSql :: Sqlite -> DeleteFrom -> ME Doc #

Command DeleteFrom () BigQuery # 
Instance details

Defined in Napkin.Run.BigQuery

Command DeleteFrom () MsSql # 
Instance details

Defined in Napkin.Run.MsSql

Command DeleteFrom () Postgres # 
Instance details

Defined in Napkin.Run.Postgres

Command DeleteFrom () Redshift # 
Instance details

Defined in Napkin.Run.Redshift

Command DeleteFrom () Sqlite # 
Instance details

Defined in Napkin.Run.Sqlite

type Rep DeleteFrom # 
Instance details

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 #

Constructors

CreateMaterializedView 

Fields

Instances

Instances details
Data meta => Data (CreateMaterializedView 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) -> 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) # 
Instance details

Defined in Napkin.Types.Commands

Associated Types

type Rep (CreateMaterializedView meta) 
Instance details

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))))
Show meta => Show (CreateMaterializedView meta) # 
Instance details

Defined in Napkin.Types.Commands

Eq meta => Eq (CreateMaterializedView meta) # 
Instance details

Defined in Napkin.Types.Commands

RenderSql (CreateMaterializedView MaterializedViewMeta) BigQuery # 
Instance details

Defined in Napkin.Render.BigQuery

RenderSql (CreateMaterializedView MaterializedViewMeta) Postgres # 
Instance details

Defined in Napkin.Render.Postgres

RenderSql (CreateMaterializedView SqliteMaterializedViewMeta) Sqlite # 
Instance details

Defined in Napkin.Render.Sqlite

RenderSql (CreateMaterializedView ()) Redshift # 
Instance details

Defined in Napkin.Render.Redshift

Command (CreateMaterializedView MaterializedViewMeta) () BigQuery # 
Instance details

Defined in Napkin.Run.BigQuery

Command (CreateMaterializedView MsSqlMaterializedViewMeta) () MsSql # 
Instance details

Defined in Napkin.Run.MsSql

Command (CreateMaterializedView MaterializedViewMeta) () Postgres # 
Instance details

Defined in Napkin.Run.Postgres

Command (CreateMaterializedView SqliteMaterializedViewMeta) () Sqlite # 
Instance details

Defined in Napkin.Run.Sqlite

Command (CreateMaterializedView ()) () Redshift # 
Instance details

Defined in Napkin.Run.Redshift

type Rep (CreateMaterializedView meta) # 
Instance details

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

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

Generic GetRelationSchema # 
Instance details

Defined in Napkin.Types.Commands

Associated Types

type Rep GetRelationSchema 
Instance details

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))))
Show GetRelationSchema # 
Instance details

Defined in Napkin.Types.Commands

Eq GetRelationSchema # 
Instance details

Defined in Napkin.Types.Commands

Command GetRelationSchema [BackendSchemaField BigQuery] BigQuery # 
Instance details

Defined in Napkin.Run.BigQuery

Command GetRelationSchema [BackendSchemaField MsSql] MsSql # 
Instance details

Defined in Napkin.Run.MsSql

Command GetRelationSchema [BackendSchemaField Postgres] Postgres # 
Instance details

Defined in Napkin.Run.Postgres

Command GetRelationSchema [BackendSchemaField Redshift] Redshift # 
Instance details

Defined in Napkin.Run.Redshift

Command GetRelationSchema [BackendSchemaField Sqlite] Sqlite # 
Instance details

Defined in Napkin.Run.Sqlite

type Rep GetRelationSchema # 
Instance details

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 #

Constructors

NormalizeTableNames 

Fields

Instances

Instances details
Data NormalizeTableNames # 
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) -> 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 # 
Instance details

Defined in Napkin.Types.Commands

Associated Types

type Rep NormalizeTableNames 
Instance details

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)))))
Show NormalizeTableNames # 
Instance details

Defined in Napkin.Types.Commands

Eq NormalizeTableNames # 
Instance details

Defined in Napkin.Types.Commands

Command NormalizeTableNames (Map (Ref Table) NormalizedTable) BigQuery # 
Instance details

Defined in Napkin.Run.BigQuery

Command NormalizeTableNames (Map (Ref Table) NormalizedTable) MsSql # 
Instance details

Defined in Napkin.Run.MsSql

Command NormalizeTableNames (Map (Ref Table) NormalizedTable) Postgres # 
Instance details

Defined in Napkin.Run.Postgres

Command NormalizeTableNames (Map (Ref Table) NormalizedTable) Redshift # 
Instance details

Defined in Napkin.Run.Redshift

Command NormalizeTableNames (Map (Ref Table) NormalizedTable) Sqlite # 
Instance details

Defined in Napkin.Run.Sqlite

type Rep NormalizeTableNames # 
Instance details

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