pub struct DatabaseInfoOutput {
pub sqlite_version: String,
pub page_size: i64,
pub page_count: i64,
pub journal_mode: String,
pub wal_checkpoint: Option<WalCheckpointInfo>,
pub database_size_bytes: i64,
pub freelist_count: i64,
pub table_count: i64,
pub index_count: i64,
}Expand description
The result of querying database metadata.
Fields§
§sqlite_version: StringThe SQLite library version string (e.g. "3.45.1").
page_size: i64The database page size in bytes, as configured by PRAGMA page_size.
page_count: i64The total number of pages in the database file, as reported by PRAGMA page_count.
journal_mode: StringThe active journal mode (e.g. "delete", "wal", "memory").
wal_checkpoint: Option<WalCheckpointInfo>WAL checkpoint information, present only when the journal mode is
"wal". Contains the result of PRAGMA wal_checkpoint(PASSIVE).
database_size_bytes: i64The total database size in bytes, computed as page_size * page_count.
freelist_count: i64The number of unused pages on the freelist, as reported by PRAGMA freelist_count.
table_count: i64The number of tables in the database, counted from sqlite_master.
index_count: i64The number of indexes in the database, counted from sqlite_master.
Trait Implementations§
Source§impl Clone for DatabaseInfoOutput
impl Clone for DatabaseInfoOutput
Source§fn clone(&self) -> DatabaseInfoOutput
fn clone(&self) -> DatabaseInfoOutput
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DatabaseInfoOutput
impl Debug for DatabaseInfoOutput
Source§impl<'de> Deserialize<'de> for DatabaseInfoOutput
impl<'de> Deserialize<'de> for DatabaseInfoOutput
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for DatabaseInfoOutput
impl Hash for DatabaseInfoOutput
Source§impl JsonSchema for DatabaseInfoOutput
impl JsonSchema for DatabaseInfoOutput
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl Ord for DatabaseInfoOutput
impl Ord for DatabaseInfoOutput
Source§fn cmp(&self, other: &DatabaseInfoOutput) -> Ordering
fn cmp(&self, other: &DatabaseInfoOutput) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for DatabaseInfoOutput
impl PartialEq for DatabaseInfoOutput
Source§impl PartialOrd for DatabaseInfoOutput
impl PartialOrd for DatabaseInfoOutput
Source§impl Serialize for DatabaseInfoOutput
impl Serialize for DatabaseInfoOutput
impl Eq for DatabaseInfoOutput
impl StructuralPartialEq for DatabaseInfoOutput
Auto Trait Implementations§
impl Freeze for DatabaseInfoOutput
impl RefUnwindSafe for DatabaseInfoOutput
impl Send for DatabaseInfoOutput
impl Sync for DatabaseInfoOutput
impl Unpin for DatabaseInfoOutput
impl UnsafeUnpin for DatabaseInfoOutput
impl UnwindSafe for DatabaseInfoOutput
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more