AddDuckDB
Method
func (DistributedApplicationBuilder) AddDuckDB( name string, options ...*AddDuckDBOptions,) DuckDBResourceSignature
method
AddDuckDB builderAdds a DuckDB resource to the application builder.
AddDuckDB( name string, options ...*AddDuckDBOptions,) DuckDBResourceParameters
namestringThe name of the resource.options...*AddDuckDBOptions Optional settings, described under Options.Options
Optional parameters are passed in a trailing options ...*AddDuckDBOptions argument.
DatabasePath *stringThe optional path to the database file. If no path is provided the database is stored in a temporary location.DatabaseFileName *stringThe filename of the database file. Must include extension. If no file name is provided, a randomly generated file name is used.Returns
DuckDBResource A resource builder for the DuckDB resource.
Returns a handle; failures surface later via Err().
Applies to
This method applies to the following types:
type
DistributedApplicationBuilder