Skip to content
DocsTry Aspire
DocsTry

withReadOnly

Method
📦 CommunityToolkit.Aspire.Hosting.DuckDB v13.5.0
interface DuckDBResource {
// ... omitted for brevity
withReadOnly(): DuckDBResource;
}

Signature

methodwithReadOnlybuilder
Configures the DuckDB resource to open the database in read-only mode.
withReadOnly(): DuckDBResource
DuckDBResource

Applies to

This method applies to the following types: