addDuckDB
Method
interface IDistributedApplicationBuilder { // ... omitted for brevity addDuckDB( name: string, databasePath?: string, databaseFileName?: string): DuckDBResource;}Signature
method
addDuckDB builderAdds a DuckDB resource to the application builder.
addDuckDB( name: string, databasePath?: string, databaseFileName?: string): DuckDBResourceParameters
namestringThe name of the resource.databasePath stringoptionalThe optional path to the database file. If no path is provided the database is stored in a temporary location.databaseFileName stringoptionalThe filename of the database file. Must include extension. If no file name is provided, a randomly generated file name is used.Returns
DuckDBResource Applies to
This method applies to the following types: