pub trait BackupLocation: Send + Sync {
    type Error: AnyError;

    fn store(
        &self,
        schema: &SchemaName,
        database_name: &str,
        container: &str,
        name: &str,
        object: &[u8]
    ) -> Result<(), Self::Error>; fn list_schemas(&self) -> Result<Vec<SchemaName>, Self::Error>; fn list_databases(
        &self,
        schema: &SchemaName
    ) -> Result<Vec<String>, Self::Error>; fn list_stored(
        &self,
        schema: &SchemaName,
        database_name: &str,
        container: &str
    ) -> Result<Vec<String>, Self::Error>; fn load(
        &self,
        schema: &SchemaName,
        database_name: &str,
        container: &str,
        name: &str
    ) -> Result<Vec<u8>, Self::Error>; }
Expand description

A location to store and restore a database from.

Required Associated Types§

The error type for the backup location.

Required Methods§

Store object at path with name.

Lists all of the schemas stored in this backup location.

List all of the names of the databases stored for schema.

List all stored named objects at path. The names should be the same that were provided when store() was called.

Load a previously stored object from path with name.

Implementations on Foreign Types§

Implementors§