wtx 0.45.0

A collection of different transport implementations and related tools focused primarily on web technologies.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::{
  codec::CodecController,
  collection::Vector,
  database::schema_manager::{Commands, SchemaManagement},
};
use alloc::string::String;

impl<E> Commands<E>
where
  E: SchemaManagement,
{
  /// Tries to clear all objects of a database, including separated namespaces/schemas.
  #[inline]
  pub async fn clear(&mut self) -> Result<(), <E::Database as CodecController>::Error> {
    self.executor.clear((&mut String::new(), &mut Vector::new())).await
  }
}