Appearance
PostgresExtensionCatalog Class
Definition
Ensures PostgreSQL extensions are installed into a dedicated catalog schema.
- Namespace:
JASE.Database - Assembly:
JASE.Database.dll
Fields
| Name | Description |
|---|---|
DefaultSchemaName | Conventional schema name for extension objects when no override is supplied. |
Methods
| Name | Description |
|---|---|
Task EnsureAsync(IDatabaseSession session, IEnumerable<string> extensions, string schema = null, CancellationToken cancellationToken = null) | Creates the target schema if needed, installs each extension into that schema, relocates already-installed extensions when they live elsewhere, then reloads Npgsql types. |
Remarks
Prefer listing the application schema before the extensions schema in SearchPath (for example public,extensions).
Schema resolution when schema is omitted: ExtensionsSchema from the session's captured provider options, otherwise DefaultSchemaName.