Type alias CreateAstraDatabaseOptions

CreateAstraDatabaseOptions: AstraAdminBlockingOptions & WithTimeout<"databaseAdminTimeoutMs"> & {
    dbOptions?: DbOptions;
}
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.

Type declaration

Example

const dbAdmin = await admin.createDatabase({
name: 'my-db',
cloudProvider: 'GCP',
region: 'us-central1',
}, {
databaseAdminTimeoutMs: 240000,
pollInterval: 20000,
dbOptions: { logging: 'all' },
});

See

  • AstraAdmin.createDatabase
  • AstraDatabaseConfig