| Copyright | (c) Soostone Inc 2020 |
|---|---|
| License | AllRightsReserved |
| Stability | experimental |
| Portability | POSIX |
| Safe Haskell | Safe-Inferred |
| Language | GHC2021 |
Napkin.Types.Postgres
Description
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
Constructors
| Postgres |
Instances
Constructors
| TableMeta | |
Fields | |
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 Methods execCommand :: MonadNapkin Postgres m => BackendConn Postgres -> CreateTable TableMeta -> m () # | |
| type Rep TableMeta # | |
Defined in Napkin.Types.Postgres | |
data MaterializedViewMeta #
Constructors
| MaterializedViewMeta | |
Instances
data SetTableSchema #
In Postgres it's not possible to RENAME and SET SCHEMA in a single query
Constructors
| SetTableSchema | |
Fields
| |
Instances
data CreateIndex #
Instances
| Show CreateIndex # | |
Defined in Napkin.Types.Postgres Methods showsPrec :: Int -> CreateIndex -> ShowS # show :: CreateIndex -> String # showList :: [CreateIndex] -> ShowS # | |
| Eq CreateIndex # | |
Defined in Napkin.Types.Postgres | |
| RenderSql CreateIndex Postgres # | |
Defined in Napkin.Render.Postgres Methods renderSql :: Postgres -> CreateIndex -> Doc # | |