MQL reference navigation
dbStats
Returns statistics for the current logical database.
db.stats({ scale: 1024 })| Parameter | Description |
|---|---|
dbStats | (Required) A command marker, conventionally 1; the target database is supplied by the connection's $db. |
scale | (Optional) A number specifying the divisor for applicable byte-size fields; defaults to 1. The backend truncates numeric values to an integer. |
null or undefined scale uses 1. The default wire adapter forwards only the database and scale, not a freeStorage option.
See wire protocol and common fields. Source: gateway processor/data_management.rs, process_db_stats, and backend pg_documentdb/src/commands/db_stats.c.