Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithReadOnly

Method
📦 CommunityToolkit.Aspire.Hosting.DuckDB v13.6.1
func (DuckDBResource) WithReadOnly() DuckDBResource

Signature

methodWithReadOnlybuilder
Configures the DuckDB resource to open the database in read-only mode.
WithReadOnly() DuckDBResource
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: