PostgresDbClient Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
An implementation of a client for Postgres. This class is used to managing postgres database operations.
public class PostgresDbClient : Microsoft.SemanticKernel.Connectors.Postgres.IPostgresDbClient
type PostgresDbClient = class
interface IPostgresDbClient
Public Class PostgresDbClient
Implements IPostgresDbClient
- Inheritance
-
PostgresDbClient
- Implements
Constructors
PostgresDbClient(NpgsqlDataSource, String, Int32) |
Initializes a new instance of the PostgresDbClient class. |
Methods
CreateTableAsync(String, CancellationToken) |
Create a table. |
DeleteAsync(String, String, CancellationToken) |
Delete a entry by its key. |
DeleteBatchAsync(String, IEnumerable<String>, CancellationToken) |
Delete multiple entries by their key. |
DeleteTableAsync(String, CancellationToken) |
Delete a table. |
DoesTableExistsAsync(String, CancellationToken) |
Check if a table exists. |
GetNearestMatchesAsync(String, Vector, Int32, Double, Boolean, CancellationToken) |
Gets the nearest matches to the Pgvector.Vector. |
GetTablesAsync(CancellationToken) |
Get all tables. |
ReadAsync(String, String, Boolean, CancellationToken) |
Read a entry by its key. |
ReadBatchAsync(String, IEnumerable<String>, Boolean, CancellationToken) |
Read multiple entries by their keys. |
UpsertAsync(String, String, String, Vector, Nullable<DateTime>, CancellationToken) |
Upsert entry into a table. |