addDatabase

Method
📦 CommunityToolkit.Aspire.Hosting.RavenDB v13.6.1
interface RavenDBServerResource {
// ... omitted for brevity
addDatabase(
name: string,
databaseName?: string,
ensureCreated?: boolean): RavenDBDatabaseResource;
}

Signature

methodaddDatabasebuilder
Adds a database resource to an existing RavenDB server resource.
addDatabase(
name: string,
databaseName?: string,
ensureCreated?: boolean): RavenDBDatabaseResource
namestringThe name of the database resource.
databaseNamestringoptionalThe name of the database to create/add. Defaults to the same name as the resource if not provided.
ensureCreatedbooleanoptional= FalseIndicates whether the database should be created on startup if it does not already exist.
RavenDBDatabaseResource

Applies to

This method applies to the following types: