reader
ModuleHow 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 DatabaseReaderReads 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 CursorWhere a cursor points: a resource, or an id.
use utopia_migration::sources::appwrite::reader::ReaderQuery;Rust
pub enum ReaderQueryA query of a reader: an API query string, or a database query.
use utopia_migration::sources::appwrite::reader::Reader;Rust
pub trait Reader: Send + SyncLists databases, tables, columns, indexes and rows for the Appwrite source, and builds the queries it pages them with.
Implemented byApiReaderDatabaseReader
use utopia_migration::sources::appwrite::reader::plain;Rust
pub fn plain(doc: &Document) -> ArrayA 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.