Optional ReadonlynameNamed connection for multi-database support. Defaults to 'default'.
When a name is provided, the service registers under
database.<name> (e.g. database.primary); otherwise it uses the
canonical CAPABILITIES.DATABASE token. Dot notation, not a colon:
createCapabilityToken rejects colons.
ReadonlyoptionsCosmos adapter configuration; database and one credential form are required.
Optional ReadonlyreadinessOptional schema readiness, evaluated by this connection's health indicator.
ReadonlytypeSelects the Cosmos arm.
The arm selecting the Cosmos adapter over the
@azure/cosmosSDK — Azure Cosmos DB's NoSQL (SQL) API.options.databaseis required, andoptions.endpoint+options.keyare required unlessoptions.clientis supplied, so a registration that forgets them is a compile error instead of aconnect()throw — the guarantee every other built-in arm gives.Cosmos DB's MongoDB API is a different wire protocol and is served by the
MongoDatabaseOptionsarm pointed at a Cosmos connection string, not by this one.Example
Since
0.2.0