pub struct Admin { /* private fields */ }Expand description
Server-lifecycle and inspection operations. Obtain via
ArcadeDbClient::admin.
Implementations§
Source§impl Admin
impl Admin
Sourcepub async fn ping(&self) -> Result<PingResponse>
pub async fn ping(&self) -> Result<PingResponse>
Ping the server to verify admin connectivity.
Sourcepub async fn create_database(&self, name: &str, db_type: &str) -> Result<()>
pub async fn create_database(&self, name: &str, db_type: &str) -> Result<()>
Create a new database. db_type is "graph" or "document"
(logical; see the proto spec).
Sourcepub async fn drop_database(&self, name: &str) -> Result<()>
pub async fn drop_database(&self, name: &str) -> Result<()>
Drop a database by name.
Sourcepub async fn exists_database(&self, name: &str) -> Result<bool>
pub async fn exists_database(&self, name: &str) -> Result<bool>
Whether a database with this name exists on the server.
Sourcepub async fn list_databases(&self) -> Result<Vec<String>>
pub async fn list_databases(&self) -> Result<Vec<String>>
All database names the credentials can see.
Sourcepub async fn get_server_info(&self) -> Result<GetServerInfoResponse>
pub async fn get_server_info(&self) -> Result<GetServerInfoResponse>
Server version / edition / uptime / ports.
Sourcepub async fn get_database_info(
&self,
name: &str,
) -> Result<GetDatabaseInfoResponse>
pub async fn get_database_info( &self, name: &str, ) -> Result<GetDatabaseInfoResponse>
Schema/types/statistics summary for one database.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Admin
impl !RefUnwindSafe for Admin
impl !UnwindSafe for Admin
impl Send for Admin
impl Sync for Admin
impl Unpin for Admin
impl UnsafeUnpin for Admin
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request