Rust

How the Appwrite source reads databases: through the API, or straight from the project's database.

Contents

use utopia_migration::sources::appwrite::reader::DatabaseReader;
Rust
pub struct DatabaseReader

Reads straight from the project's database (_databases, _attributes, _indexes and the per-database collections).

Also implements Debug.
use utopia_migration::sources::appwrite::reader::Cursor;
Rust
pub enum Cursor

Where a cursor points: a resource, or an id.

use utopia_migration::sources::appwrite::reader::ReaderQuery;
Rust
pub enum ReaderQuery

A query of a reader: an API query string, or a database query.

use utopia_migration::sources::appwrite::reader::Reader;
Rust
pub trait Reader: Send + Sync

Lists databases, tables, columns, indexes and rows for the Appwrite source, and builds the queries it pages them with.

use utopia_migration::sources::appwrite::reader::plain;
Rust
pub fn plain(doc: &Document) -> Array

A document as a plain array (getArrayCopy()).

Rust
pub type DatabaseResolver = Arc<dyn Fn(&Document) -> Db + Send + Sync>

Resolves the database a database document's data lives in.