DuckDBMemoryStore.ConnectAsync 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.
Overloads
ConnectAsync(CancellationToken) |
Connect an in memory DuckDB database |
ConnectAsync(DuckDBConnection, CancellationToken) |
Connect an in memory DuckDB database |
ConnectAsync(Int32, CancellationToken) |
Connect an in memory DuckDB database |
ConnectAsync(String, CancellationToken) |
Connect a DuckDB database |
ConnectAsync(DuckDBConnection, Int32, CancellationToken) |
Connect an in memory DuckDB database |
ConnectAsync(String, Int32, CancellationToken) |
Connect a DuckDB database |
ConnectAsync(CancellationToken)
Connect an in memory DuckDB database
public static System.Threading.Tasks.Task<Microsoft.SemanticKernel.Connectors.DuckDB.DuckDBMemoryStore> ConnectAsync (System.Threading.CancellationToken cancellationToken = default);
static member ConnectAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.SemanticKernel.Connectors.DuckDB.DuckDBMemoryStore>
Public Shared Function ConnectAsync (Optional cancellationToken As CancellationToken = Nothing) As Task(Of DuckDBMemoryStore)
Parameters
- cancellationToken
- CancellationToken
The CancellationToken to monitor for cancellation requests. The default is None.
Returns
Applies to
ConnectAsync(DuckDBConnection, CancellationToken)
Connect an in memory DuckDB database
public static System.Threading.Tasks.Task<Microsoft.SemanticKernel.Connectors.DuckDB.DuckDBMemoryStore> ConnectAsync (DuckDB.NET.Data.DuckDBConnection connection, System.Threading.CancellationToken cancellationToken = default);
static member ConnectAsync : DuckDB.NET.Data.DuckDBConnection * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.SemanticKernel.Connectors.DuckDB.DuckDBMemoryStore>
Public Shared Function ConnectAsync (connection As DuckDBConnection, Optional cancellationToken As CancellationToken = Nothing) As Task(Of DuckDBMemoryStore)
Parameters
- connection
- DuckDB.NET.Data.DuckDBConnection
An already established connection.
- cancellationToken
- CancellationToken
The CancellationToken to monitor for cancellation requests. The default is None.
Returns
Applies to
ConnectAsync(Int32, CancellationToken)
Connect an in memory DuckDB database
public static System.Threading.Tasks.Task<Microsoft.SemanticKernel.Connectors.DuckDB.DuckDBMemoryStore> ConnectAsync (int vectorSize, System.Threading.CancellationToken cancellationToken = default);
static member ConnectAsync : int * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.SemanticKernel.Connectors.DuckDB.DuckDBMemoryStore>
Public Shared Function ConnectAsync (vectorSize As Integer, Optional cancellationToken As CancellationToken = Nothing) As Task(Of DuckDBMemoryStore)
Parameters
- vectorSize
- Int32
Embedding vector size.
- cancellationToken
- CancellationToken
The CancellationToken to monitor for cancellation requests. The default is None.
Returns
Applies to
ConnectAsync(String, CancellationToken)
Connect a DuckDB database
public static System.Threading.Tasks.Task<Microsoft.SemanticKernel.Connectors.DuckDB.DuckDBMemoryStore> ConnectAsync (string filename, System.Threading.CancellationToken cancellationToken = default);
static member ConnectAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.SemanticKernel.Connectors.DuckDB.DuckDBMemoryStore>
Public Shared Function ConnectAsync (filename As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of DuckDBMemoryStore)
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
ConnectAsync(DuckDBConnection, Int32, CancellationToken)
Connect an in memory DuckDB database
public static System.Threading.Tasks.Task<Microsoft.SemanticKernel.Connectors.DuckDB.DuckDBMemoryStore> ConnectAsync (DuckDB.NET.Data.DuckDBConnection connection, int vectorSize, System.Threading.CancellationToken cancellationToken = default);
static member ConnectAsync : DuckDB.NET.Data.DuckDBConnection * int * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.SemanticKernel.Connectors.DuckDB.DuckDBMemoryStore>
Public Shared Function ConnectAsync (connection As DuckDBConnection, vectorSize As Integer, Optional cancellationToken As CancellationToken = Nothing) As Task(Of DuckDBMemoryStore)
Parameters
- connection
- DuckDB.NET.Data.DuckDBConnection
An already established connection.
- vectorSize
- Int32
Embedding vector size.
- cancellationToken
- CancellationToken
The CancellationToken to monitor for cancellation requests. The default is None.
Returns
Applies to
ConnectAsync(String, Int32, CancellationToken)
Connect a DuckDB database
public static System.Threading.Tasks.Task<Microsoft.SemanticKernel.Connectors.DuckDB.DuckDBMemoryStore> ConnectAsync (string filename, int vectorSize, System.Threading.CancellationToken cancellationToken = default);
static member ConnectAsync : string * int * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.SemanticKernel.Connectors.DuckDB.DuckDBMemoryStore>
Public Shared Function ConnectAsync (filename As String, vectorSize As Integer, Optional cancellationToken As CancellationToken = Nothing) As Task(Of DuckDBMemoryStore)
Parameters
- filename
- String
Path to the database file. If file does not exist, it will be created.
- vectorSize
- Int32
Embedding vector size.
- cancellationToken
- CancellationToken
The CancellationToken to monitor for cancellation requests. The default is None.