Safe Haskell | None |
---|---|
Language | GHC2021 |
Synopsis
- data Postgres = Postgres
- newtype TableMeta = TableMeta {}
- data MaterializedViewMeta = MaterializedViewMeta {}
- data SetTableSchema = SetTableSchema {}
- data CreateIndex = CreateIndex {}
Documentation
Instances
Instances
FromJSON TableMeta # | |||||
Defined in Napkin.Types.Postgres | |||||
Generic TableMeta # | |||||
Defined in Napkin.Types.Postgres
| |||||
Show TableMeta # | |||||
Default TableMeta # | |||||
Defined in Napkin.Types.Postgres | |||||
Eq TableMeta # | |||||
RenderSql (CreateTable TableMeta) Postgres # | Commands | ||||
Defined in Napkin.Render.Postgres | |||||
Command (CreateTable TableMeta) () Postgres # | |||||
Defined in Napkin.Run.Postgres execCommand :: MonadNapkin Postgres m => BackendConn Postgres -> CreateTable TableMeta -> m () # | |||||
Command (CreateTableDDL TableMeta) () Postgres # | |||||
Defined in Napkin.Run.Postgres execCommand :: MonadNapkin Postgres m => BackendConn Postgres -> CreateTableDDL TableMeta -> m () # | |||||
type Rep TableMeta # | |||||
Defined in Napkin.Types.Postgres |
data MaterializedViewMeta #
Instances
FromJSON MaterializedViewMeta # | |||||
Defined in Napkin.Types.Postgres | |||||
Generic MaterializedViewMeta # | |||||
Defined in Napkin.Types.Postgres
from :: MaterializedViewMeta -> Rep MaterializedViewMeta x # to :: Rep MaterializedViewMeta x -> MaterializedViewMeta # | |||||
Show MaterializedViewMeta # | |||||
Defined in Napkin.Types.Postgres showsPrec :: Int -> MaterializedViewMeta -> ShowS # show :: MaterializedViewMeta -> String # showList :: [MaterializedViewMeta] -> ShowS # | |||||
Default MaterializedViewMeta # | |||||
Defined in Napkin.Types.Postgres | |||||
Eq MaterializedViewMeta # | |||||
Defined in Napkin.Types.Postgres (==) :: MaterializedViewMeta -> MaterializedViewMeta -> Bool # (/=) :: MaterializedViewMeta -> MaterializedViewMeta -> Bool # | |||||
RenderSql (CreateMaterializedView MaterializedViewMeta) Postgres # | |||||
Defined in Napkin.Render.Postgres | |||||
Command (CreateMaterializedView MaterializedViewMeta) () Postgres # | |||||
Defined in Napkin.Run.Postgres execCommand :: MonadNapkin Postgres m => BackendConn Postgres -> CreateMaterializedView MaterializedViewMeta -> m () # | |||||
type Rep MaterializedViewMeta # | |||||
Defined in Napkin.Types.Postgres type Rep MaterializedViewMeta = D1 ('MetaData "MaterializedViewMeta" "Napkin.Types.Postgres" "napkin-1.0.0-5YkWAC9Wc776PT0LDghaFb" 'False) (C1 ('MetaCons "MaterializedViewMeta" 'PrefixI 'True) (S1 ('MetaSel ('Just "timescale") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe TimescaleViewMeta)) :*: S1 ('MetaSel ('Just "indexes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Indexes)))) |
data SetTableSchema #
In Postgres it's not possible to RENAME and SET SCHEMA in a single query
Instances
Data SetTableSchema # | |
Defined in Napkin.Types.Postgres gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> SetTableSchema -> c SetTableSchema # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c SetTableSchema # toConstr :: SetTableSchema -> Constr # dataTypeOf :: SetTableSchema -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c SetTableSchema) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c SetTableSchema) # gmapT :: (forall b. Data b => b -> b) -> SetTableSchema -> SetTableSchema # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> SetTableSchema -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> SetTableSchema -> r # gmapQ :: (forall d. Data d => d -> u) -> SetTableSchema -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> SetTableSchema -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> SetTableSchema -> m SetTableSchema # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> SetTableSchema -> m SetTableSchema # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> SetTableSchema -> m SetTableSchema # | |
Show SetTableSchema # | |
Defined in Napkin.Types.Postgres showsPrec :: Int -> SetTableSchema -> ShowS # show :: SetTableSchema -> String # showList :: [SetTableSchema] -> ShowS # | |
Eq SetTableSchema # | |
Defined in Napkin.Types.Postgres (==) :: SetTableSchema -> SetTableSchema -> Bool # (/=) :: SetTableSchema -> SetTableSchema -> Bool # | |
RenderSql SetTableSchema Postgres # | |
Defined in Napkin.Render.Postgres | |
RenderSql SetTableSchema Redshift # | |
Defined in Napkin.Render.Redshift |
data CreateIndex #
Instances
Show CreateIndex # | |
Defined in Napkin.Types.Postgres showsPrec :: Int -> CreateIndex -> ShowS # show :: CreateIndex -> String # showList :: [CreateIndex] -> ShowS # | |
Eq CreateIndex # | |
Defined in Napkin.Types.Postgres (==) :: CreateIndex -> CreateIndex -> Bool # (/=) :: CreateIndex -> CreateIndex -> Bool # | |
RenderSql CreateIndex Postgres # | |
Defined in Napkin.Render.Postgres |