| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
Napkin.Run.Postgres
Synopsis
- withPostgresString :: Natural -> Text -> (BackendConn Postgres -> IO b) -> IO b
- data family BackendSchemaField (bk :: k)
- data family BackendConn b
Postgres Re-exports
withPostgresString :: Natural -> Text -> (BackendConn Postgres -> IO b) -> IO b #
data family BackendSchemaField (bk :: k) #
Instances
data family BackendConn b #
Instances
Orphan instances
| Backend Postgres # | |||||
Associated Types
Methods backendQuery :: (MonadNapkin Postgres m, RenderSql q Postgres) => BackendConn Postgres -> q -> m [Map Text Value] # backendConnectionString :: BackendConn Postgres -> ConnectionString # | |||||
| HasPostgresConn Postgres # | |||||
Methods getPostgresConn :: BackendConn Postgres -> Pool Connection # | |||||
| RunBackendConn Postgres # | |||||
Methods runBackendConn :: LogEnv -> DbBackendOptions Postgres -> ConnectionString -> AppName -> Maybe CredentialsPath -> SpecFile -> Maybe AuthPort -> (Pipeline -> BackendConn Postgres -> IO a) -> IO a # | |||||
| HasBackendSchemaField Postgres # | |||||
Associated Types
Methods fieldName :: BackendSchemaField Postgres -> Text # fieldType :: BackendSchemaField Postgres -> Type # | |||||
| CSVImport Postgres # | |||||
| HasBackendQueryStats Postgres # | |||||
Associated Types
Methods | |||||
| Command AEDA TableDiagnostics Postgres # | |||||
Methods execCommand :: MonadNapkin Postgres m => BackendConn Postgres -> AEDA -> m TableDiagnostics # | |||||
| Command AnnotateCommand () Postgres # | |||||
Methods execCommand :: MonadNapkin Postgres m => BackendConn Postgres -> AnnotateCommand -> m () # | |||||
| Command CheckTableExists Bool Postgres # | |||||
Methods execCommand :: MonadNapkin Postgres m => BackendConn Postgres -> CheckTableExists -> m Bool # | |||||
| Command CopyTable () Postgres # | |||||
Methods execCommand :: MonadNapkin Postgres m => BackendConn Postgres -> CopyTable -> m () # | |||||
| Command DeleteFrom () Postgres # | |||||
Methods execCommand :: MonadNapkin Postgres m => BackendConn Postgres -> DeleteFrom -> m () # | |||||
| Command DropTable () Postgres # | |||||
Methods execCommand :: MonadNapkin Postgres m => BackendConn Postgres -> DropTable -> m () # | |||||
| Command DropView () Postgres # | |||||
Methods execCommand :: MonadNapkin Postgres m => BackendConn Postgres -> DropView -> m () # | |||||
| Command GetTableKind TableKind Postgres # | |||||
Methods execCommand :: MonadNapkin Postgres m => BackendConn Postgres -> GetTableKind -> m TableKind # | |||||
| Command InsertIntoQuery () Postgres # | |||||
Methods execCommand :: MonadNapkin Postgres m => BackendConn Postgres -> InsertIntoQuery -> m () # | |||||
| Command InsertIntoTable () Postgres # | |||||
Methods execCommand :: MonadNapkin Postgres m => BackendConn Postgres -> InsertIntoTable -> m () # | |||||
| Command ReadAnnotationCommand TableAnnotations Postgres # | |||||
Methods execCommand :: MonadNapkin Postgres m => BackendConn Postgres -> ReadAnnotationCommand -> m TableAnnotations # | |||||
| Command RenameTable () Postgres # | |||||
Methods execCommand :: MonadNapkin Postgres m => BackendConn Postgres -> RenameTable -> m () # | |||||
| Command Grant () Postgres # | |||||
Methods execCommand :: MonadNapkin Postgres m => BackendConn Postgres -> Grant -> m () # | |||||
| Command UpdateQuery () Postgres # | |||||
Methods execCommand :: MonadNapkin Postgres m => BackendConn Postgres -> UpdateQuery -> m () # | |||||
| Command GetRelationSchema [BackendSchemaField Postgres] Postgres # | |||||
Methods execCommand :: MonadNapkin Postgres m => BackendConn Postgres -> GetRelationSchema -> m [BackendSchemaField Postgres] # | |||||
| Command ListTables (Set ListedTable) Postgres # | |||||
Methods execCommand :: MonadNapkin Postgres m => BackendConn Postgres -> ListTables -> m (Set ListedTable) # | |||||
| Command NormalizeTableNames (Map (Ref Table) NormalizedTable) Postgres # | |||||
Methods execCommand :: MonadNapkin Postgres m => BackendConn Postgres -> NormalizeTableNames -> m (Map (Ref Table) NormalizedTable) # | |||||
| FromJSON (DbBackendOptions Postgres) # | |||||
Methods parseJSON :: Value -> Parser (DbBackendOptions Postgres) # parseJSONList :: Value -> Parser [DbBackendOptions Postgres] # | |||||
| Generic (BackendConn Postgres) # | |||||
Associated Types
Methods from :: BackendConn Postgres -> Rep (BackendConn Postgres) x # to :: Rep (BackendConn Postgres) x -> BackendConn Postgres # | |||||
| Generic (DbBackendOptions Postgres) # | |||||
Associated Types
Methods from :: DbBackendOptions Postgres -> Rep (DbBackendOptions Postgres) x # to :: Rep (DbBackendOptions Postgres) x -> DbBackendOptions Postgres # | |||||
| Show (DbBackendOptions Postgres) # | |||||
| Default (DbBackendOptions Postgres) # | |||||
Methods | |||||
| Eq (DbBackendOptions Postgres) # | |||||
Methods (==) :: DbBackendOptions Postgres -> DbBackendOptions Postgres -> Bool # (/=) :: DbBackendOptions Postgres -> DbBackendOptions Postgres -> Bool # | |||||
| Command (CreateMaterializedView MaterializedViewMeta) () Postgres # | |||||
Methods execCommand :: MonadNapkin Postgres m => BackendConn Postgres -> CreateMaterializedView MaterializedViewMeta -> m () # | |||||
| Command (CreateTable TableMeta) () Postgres # | |||||
Methods execCommand :: MonadNapkin Postgres m => BackendConn Postgres -> CreateTable TableMeta -> m () # | |||||
| Command (CreateTableDDL TableMeta) () Postgres # | |||||
Methods execCommand :: MonadNapkin Postgres m => BackendConn Postgres -> CreateTableDDL TableMeta -> m () # | |||||
| Command (CreateView ()) () Postgres # | |||||
Methods execCommand :: MonadNapkin Postgres m => BackendConn Postgres -> CreateView () -> m () # | |||||
| FromJSON (BackendQueryStats Postgres) # | |||||
Methods parseJSON :: Value -> Parser (BackendQueryStats Postgres) # parseJSONList :: Value -> Parser [BackendQueryStats Postgres] # | |||||
| ToJSON (BackendQueryStats Postgres) # | |||||
Methods toJSON :: BackendQueryStats Postgres -> Value # toEncoding :: BackendQueryStats Postgres -> Encoding # toJSONList :: [BackendQueryStats Postgres] -> Value # toEncodingList :: [BackendQueryStats Postgres] -> Encoding # omitField :: BackendQueryStats Postgres -> Bool # | |||||
| Monoid (BackendQueryStats Postgres) # | |||||
| Semigroup (BackendQueryStats Postgres) # | |||||
Methods (<>) :: BackendQueryStats Postgres -> BackendQueryStats Postgres -> BackendQueryStats Postgres # sconcat :: NonEmpty (BackendQueryStats Postgres) -> BackendQueryStats Postgres # stimes :: Integral b => b -> BackendQueryStats Postgres -> BackendQueryStats Postgres # | |||||
| Generic (BackendQueryStats Postgres) # | |||||
Associated Types
Methods from :: BackendQueryStats Postgres -> Rep (BackendQueryStats Postgres) x # to :: Rep (BackendQueryStats Postgres) x -> BackendQueryStats Postgres # | |||||
| Show (BackendSchemaField Postgres) # | |||||
| Show (BackendQueryStats Postgres) # | |||||
| Eq (BackendSchemaField Postgres) # | |||||
Methods (==) :: BackendSchemaField Postgres -> BackendSchemaField Postgres -> Bool # (/=) :: BackendSchemaField Postgres -> BackendSchemaField Postgres -> Bool # | |||||
| Eq (BackendQueryStats Postgres) # | |||||
Methods (==) :: BackendQueryStats Postgres -> BackendQueryStats Postgres -> Bool # (/=) :: BackendQueryStats Postgres -> BackendQueryStats Postgres -> Bool # | |||||