Struct pliantdb_local::Storage [−][src]
pub struct Storage { /* fields omitted */ }
Expand description
A file-based, multi-database, multi-user database engine.
Implementations
pub async fn open_local<P: AsRef<Path> + Send>(
path: P,
configuration: &Configuration
) -> Result<Self, Error>
pub async fn open_local<P: AsRef<Path> + Send>(
path: P,
configuration: &Configuration
) -> Result<Self, Error>
Creates or opens a multi-database Storage
with its data stored in directory
.
Registers a schema for use within the server.
Trait Implementations
Creates a database named name
using the SchemaName
schema
. Read more
Deletes a database named name
. Read more
Lists the databases on this server.
fn list_available_schemas<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Vec<SchemaName>, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn list_available_schemas<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Vec<SchemaName>, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Lists the SchemaName
s on this server.
Creates a database named name
with the Schema
provided. Read more
Auto Trait Implementations
impl !RefUnwindSafe for Storage
impl !UnwindSafe for Storage
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self