Skip to main content

api.createDatabase()

Creates a logical database through durable Database Operations and waits for verified DDL commit. Accepted work survives a disconnected caller. Standard index builds can block writes. The server assigns databaseId, version, and timestamps; never generate or send those values. A normal database needs at least one definition. Notes:
  • Unavailable with readOnly: true (throws an error).

Signature

Example

See all api methods or runtime basics.
Last modified on November 8, 2026