Appearance
IPostgresMetadataProvider Interface
Definition
Provides access to extended metadata and utility operations available on a PostgreSQL connection. Includes support for extensions, full-text search, and phrase translation.
- Namespace:
JASE.Database - Assembly:
JASE.Database.dll
Methods
| Name | Description |
|---|---|
bool CheckExtensionInstalled(string extension) | Returns true if the specified extension is currently installed in the connected database. |
Task<bool> CheckExtensionInstalledAsync(string extension, CancellationToken cancellationToken = null) | Asynchronously returns true if the specified extension is currently installed in the connected database. |
Task<bool> ClearServerCacheAsync(CancellationToken cancellationToken = null) | Drops information about the current connection from Server Config Cache resulting in a refresfh of data on any subsequent access |
bool CreateExtension(string extension, string schema = null) | Installs the specified PostgreSQL extension if it is not already present. |
Task<bool> CreateExtensionAsync(string extension, string schema = null) | Asynchronously installs the specified PostgreSQL extension if it is not already present. |
Task<bool> CreateSequenceAsync(string name, int seed) | Asynchronously creates a named sequencer. |
bool DropExtension(string extension) | Deletes the specified PostgreSQL extension if it is not already present. |
Task<bool> DropExtensionAsync(string extension) | Asynchronously deletes the specified PostgreSQL extension if it is not already present. |
Task<bool> DropSequenceAsync(string name) | Asynchronously drops the specified PostgreSQL sequence if it exists. |
IReadOnlyList<string> GetAvailableExtensions(bool forceRefresh = null) | Returns available Extensions |
Task<IReadOnlyList<string>> GetAvailableExtensionsAsync(bool forceRefresh = null, CancellationToken cancellationToken = null) | Asynchronously returns available Extensions |
IReadOnlyList<string> GetAvailableFtsLanguages(bool forceRefresh = null) | Returns a list of configured languages (text search configurations) available for full-text search queries. |
Task<IReadOnlyList<string>> GetAvailableFtsLanguagesAsync(bool forceRefresh = null, CancellationToken cancellationToken = null) | Asynchronously returns a list of configured languages (text search configurations) available for full-text search queries. |
string GetExtensionSchema(string extension) | Returns the schema that owns the specified installed extension, or if it is not installed. |
Task<string> GetExtensionSchemaAsync(string extension, CancellationToken cancellationToken = null) | Asynchronously returns the schema that owns the specified installed extension, or if it is not installed. |
IReadOnlyList<string> GetInstalledExtensions(bool forceRefresh = null) | Returns a list of extensions installed on the current Connection |
Task<IReadOnlyList<string>> GetInstalledExtensionsAsync(bool forceRefresh = null, CancellationToken cancellationToken = null) | Asynchronously returns a list of extensions installed on the current Connection |
PgSequencer GetSequence(string name) | Returns the details of SEQUENCE |
Task<PgSequencer> GetSequenceAsync(string name) | Asynchronously returns the details of SEQUENCE |
IReadOnlyList<string> GetSequenceList() | Returns the names SEQUENCE objects in the current database |
IReadOnlyList<string> GetSequenceList(string schema) | Returns the names SEQUENCE objects in the current database filtered by schema |
Task<IReadOnlyList<string>> GetSequenceListAsync() | Asynchronously returns the names SEQUENCE objects in the current database |
Task<IReadOnlyList<string>> GetSequenceListAsync(string schema) | Asynchronously returns the names SEQUENCE objects in the current database filtered by schema |
string PhraseToTsQuery(string phrase, string language = null) | Converts a natural language phrase into a full-text search query (e.g., for use with tsquery operations). |
Task<string> PhraseToTsQueryAsync(string phrase, string language = null) | Asynchronously converts a natural language phrase into a full-text search query (e.g., for use with tsquery operations). |
void ReloadTypes() | Reloads Npgsql's type cache for this connection. |
Task ReloadTypesAsync(CancellationToken cancellationToken = null) | Asynchronously reloads Npgsql's type cache for this connection. |