Share via


DuckDBMemoryStore.DoesCollectionExistAsync(String, CancellationToken) Method

Definition

Determines if a collection exists in the data store.

public System.Threading.Tasks.Task<bool> DoesCollectionExistAsync (string collectionName, System.Threading.CancellationToken cancellationToken = default);
abstract member DoesCollectionExistAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
override this.DoesCollectionExistAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
Public Function DoesCollectionExistAsync (collectionName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Boolean)

Parameters

collectionName
String

The name associated with a collection of embeddings.

cancellationToken
CancellationToken

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

Returns

True if given collection exists, false if not.

Implements

Applies to