pub trait AdminService {
// Required methods
fn info(&self) -> DatabaseInfo;
fn detailed_stats(&self) -> DatabaseStats;
fn schema(&self) -> SchemaInfo;
fn validate(&self) -> ValidationResult;
fn wal_status(&self) -> WalStatus;
fn wal_checkpoint(&self) -> Result<()>;
}Expand description
Trait for administrative database operations.
Provides a uniform interface for introspection, validation, and maintenance operations. Used by the CLI, REST API, and bindings to inspect and manage a Grafeo database.
Implemented by GrafeoDB.
Required Methods§
Sourcefn info(&self) -> DatabaseInfo
fn info(&self) -> DatabaseInfo
Returns high-level database information (counts, mode, persistence).
Sourcefn detailed_stats(&self) -> DatabaseStats
fn detailed_stats(&self) -> DatabaseStats
Returns detailed database statistics (memory, disk, indexes).
Sourcefn schema(&self) -> SchemaInfo
fn schema(&self) -> SchemaInfo
Returns schema information (labels, edge types, property keys).
Sourcefn validate(&self) -> ValidationResult
fn validate(&self) -> ValidationResult
Validates database integrity, returning errors and warnings.
Sourcefn wal_status(&self) -> WalStatus
fn wal_status(&self) -> WalStatus
Returns WAL (Write-Ahead Log) status.
Sourcefn wal_checkpoint(&self) -> Result<()>
fn wal_checkpoint(&self) -> Result<()>
Forces a WAL checkpoint, flushing pending records to storage.
§Errors
Returns an error if the checkpoint fails.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl AdminService for GrafeoDB
Available on crate feature
lpg only.