Struct couchdb::Database
[−]
[src]
pub struct Database { pub db_name: DatabaseName, pub update_seq: u64, pub committed_update_seq: u64, pub instance_start_time: u64, pub disk_format_version: i32, pub doc_count: u64, pub doc_del_count: u64, pub data_size: u64, pub disk_size: u64, pub purge_seq: u64, pub compact_running: bool, // some fields omitted }
Database meta-information, as returned from an action to GET a database.
Although the Database
type implements the Ord
and PartialOrd
traits,
it provides no guarantees how that ordering is defined and may change the
definition between any two releases of the couchdb crate. That is, for two
Database
values a
and b
, the expression a < b
may hold true now but
not in a subsequent release. Consequently, applications must not rely upon
any particular ordering definition.
Fields
db_name | The name of the database. |
update_seq | The current number of updates to the database. |
committed_update_seq | The number of committed updates. |
instance_start_time | Timestamp of when the database was opened, expressed in microseconds since the epoch. |
disk_format_version | The version of the physical format used for the data when it is stored on disk. |
doc_count | Number of documents in the database. |
doc_del_count | Number of deleted documents. |
data_size | Actual data size, in bytes, of the database data. |
disk_size | Size, in bytes, of the data as stored on the disk. Views indexes are not included in the calculation. |
purge_seq | The number of purge operations on the database. |
compact_running | Set to true if the database compaction routine is operating on this database. |