addDuckDB

Method
📦 CommunityToolkit.Aspire.Hosting.DuckDB v13.6.1
interface IDistributedApplicationBuilder {
// ... omitted for brevity
addDuckDB(
name: string,
databasePath?: string,
databaseFileName?: string): DuckDBResource;
}

Signature

methodaddDuckDBbuilder
Adds a DuckDB resource to the application builder.
addDuckDB(
name: string,
databasePath?: string,
databaseFileName?: string): DuckDBResource
namestringThe name of the resource.
databasePathstringoptionalThe optional path to the database file. If no path is provided the database is stored in a temporary location.
databaseFileNamestringoptionalThe filename of the database file. Must include extension. If no file name is provided, a randomly generated file name is used.
DuckDBResource

Applies to

This method applies to the following types: