Copyright | (c) Soostone Inc 2020 |
---|---|
License | AllRightsReserved |
Stability | experimental |
Portability | POSIX |
Safe Haskell | Safe-Inferred |
Language | GHC2021 |
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
FromJSON TableMeta # | |
Generic TableMeta # | |
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 () # | |
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
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 renderSql :: Postgres -> CreateIndex -> Doc # |