Share via


SqliteMemoryStore.ConnectAsync(String, CancellationToken) Method

Definition

Connect a Sqlite database

public static System.Threading.Tasks.Task<Microsoft.SemanticKernel.Connectors.Sqlite.SqliteMemoryStore> ConnectAsync (string filename, System.Threading.CancellationToken cancellationToken = default);
static member ConnectAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.SemanticKernel.Connectors.Sqlite.SqliteMemoryStore>
Public Shared Function ConnectAsync (filename As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of SqliteMemoryStore)

Parameters

filename
String

Path to the database file. If file does not exist, it will be created.

cancellationToken
CancellationToken

The CancellationToken to monitor for cancellation requests. The default is None.

Returns

Applies to