SqliteMemoryStore.ConnectAsync(String, CancellationToken) Method
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.
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.