Optional
dbOptional overrides for the Db instance underlying the AstraDbAdmin that is returned once the database is created.
The AdminOptions for the spawned AstraDbAdmin are simply copied from the AstraAdmin instance performing the operation.
const dbAdmin = await admin.createDatabase({
name: 'my-db',
cloudProvider: 'GCP',
region: 'us-central1',
}, {
databaseAdminTimeoutMs: 240000,
pollInterval: 20000,
dbOptions: { logging: 'all' },
});
Overview
Represents the client-side options for creating a new vector-enabled DataStax Astra database.
These options include the blocking options, the timeout, and any custom options for the Db instance underlying the AstraDbAdmin that is returned once the database is created.
Disclaimer: database creation is a lengthy operation, and may take upwards of 2-3 minutes
Example
These options are used in the second parameter of the
createDatabase
method.