Copyright | (c) Soostone Inc 2020 |
---|---|
License | AllRightsReserved |
Stability | experimental |
Portability | POSIX |
Safe Haskell | None |
Language | Haskell2010 |
Synopsis
- data Postgres = Postgres
- newtype TableMeta = TableMeta {}
- data MaterializedViewMeta = MaterializedViewMeta {}
- data SetTableSchema = SetTableSchema {
- _rtFrom :: Ref Table
- _rtNewSchema :: Text
- data CreateIndex = CreateIndex {}
- materializedViewMeta_timescale :: Lens' MaterializedViewMeta (Maybe TimescaleViewMeta)
- materializedViewMeta_indexes :: Lens' MaterializedViewMeta (Maybe Indexes)
- tableMeta_indexes :: Iso' TableMeta (Maybe Indexes)
Documentation
Instances
Instances
Eq TableMeta # | |
Show TableMeta # | |
Generic TableMeta # | |
FromJSON TableMeta # | |
Default TableMeta # | |
Defined in Napkin.Types.Postgres | |
RenderSql (CreateTableAs TableMeta) Postgres # | Commands |
Defined in Napkin.Render.Postgres | |
Command (CreateTableAs TableMeta) Int64 Postgres # | |
Defined in Napkin.Run.Postgres execCommand :: (Katip m, MonadQueryStats m) => BackendConn Postgres -> CreateTableAs TableMeta -> m Int64 # | |
type Rep TableMeta # | |
Defined in Napkin.Types.Postgres |
data MaterializedViewMeta #
Instances
data SetTableSchema #
In Postgres it's not possible to RENAME and SET SCHEMA in a single query
Instances
data CreateIndex #
Instances
Eq CreateIndex # | |
Defined in Napkin.Types.Postgres (==) :: CreateIndex -> CreateIndex -> Bool # (/=) :: CreateIndex -> CreateIndex -> Bool # | |
Show CreateIndex # | |
Defined in Napkin.Types.Postgres showsPrec :: Int -> CreateIndex -> ShowS # show :: CreateIndex -> String # showList :: [CreateIndex] -> ShowS # | |
RenderSql CreateIndex Postgres # | |
Defined in Napkin.Render.Postgres renderSql :: Postgres -> CreateIndex -> Doc # |