English
API
The classes and functions of the package for your language, each on a page of its own, listed here for the language chosen in the sidebar.
The crate darudb exports everything from its root: use darudb::{Database, OpenOptions};. The types these calls take and return are in Types.
The package darudb exports everything from its root: import { Database, schema } from 'darudb';. The types these calls take and return are in Types.
The package darudb exports everything from one library: import 'package:darudb/darudb.dart';. The generator darudb_generator writes a schema constant and a query builder for each annotated class. The types these calls take and return are in Types.
The package darudb exports everything from its root: import darudb, or from darudb import Database, Schema, collection. The types these calls take and return are in Types.
DatabaseDatabase is a handle to an open database file, from which every transaction begins.OpenOptionsOpenOptions holds the options a database is opened with: whether to create it, its page size, how long to wait, how much memory to use, its key or password, and its schema.ReadTransactionReadTransaction is a consistent view of the database as of one commit, for reading the storage kernel's trees and the collections of a schema.WriteTransactionWriteTransaction holds changes to the database that become visible together when it commits, or not at all.CollectionReaderCollectionReader gives the objects of one collection as a read transaction sees them: by primary key, all in key order, or found by a query.CollectionWriterCollectionWriter gives the objects of one collection inside a write transaction, with the transaction's changes, and the calls that insert, replace, update and delete them.TypedReaderTypedReader gives the objects of one collection as a read transaction sees them, read straight into the Rust type of the collection.TypedWriterTypedWriter reads and writes the objects of one collection in a write transaction, as the Rust type of the collection.ChangeChange holds changes to one object of a typed collection, one field at a time, and writes them as one update.ChangeWhereChangeWhere holds changes to every object a query finds in a typed collection, one field at a time, and writes them all or nothing.SchemaSchema declares the collections of a database and what their objects hold, at one version.CollectionCollection declares one collection of a schema: its fields, its primary key and its indexes.EmbeddedEmbedded declares the fields of an embedded object, an object stored inside another object with fields of its own.- Derive macros#[derive(Object)] makes a struct the objects of a collection, and #[derive(Embedded)] makes one an embedded object. A schema declares the collection from the struct, and a transaction reads records…
QueryQuery says what to find in a collection, in what order, and how many.FilterFilter is a condition that objects have to meet, for Query::filter.MigrationMigration says what schema version n changes from version n - 1 beyond what the engine works out by itself: renames, replaced fields, deleted collections, and a function that moves data.MigratingMigrating is the write transaction of a migration as a migration function gets it: collections of the new schema, and objects as the old schema read them.- Opening and PendingMigrationOpening and PendingMigration let a language binding open a database and drive its migration one version step at a time, running a function of its own in each step.
QueryRequestQueryRequest is a query as it crosses a language boundary: the query, the collection it runs on, and whether it counts the objects or works out an aggregate of them rather than returning them.BackupOptionsBackupOptions holds the options Database::backupwith writes a copy with: a key or a password that encrypts the copy under a new data key, and the cost of hashing that password, or no encryption at…
DatabaseDatabase is an open DaruDB file in Node.js, through which a program runs transactions, prepares queries and uses the file's tools.schemaschema declares a database's collections at a version, and returns the Schema that Database.open takes.collectioncollection declares one collection of a schema: its fields, by name, and through them its primary key and indexes.tt holds the builders of field types, with which collection and t.object declare their fields.ReadTransactionA ReadTransaction reads one commit of the database, for as long as the function Database.read runs it in.WriteTransactionA WriteTransaction holds changes to the database that commit together when the function Database.write runs it in returns.ReadCollectionA ReadCollection reads the objects of one collection in a transaction: by primary key, and by query.WriteCollectionA WriteCollection writes the objects of one collection in a write transaction, and reads them as a ReadCollection does.QueryA Query says which objects a collection's find, findOne and count look for, in what order, and how many.conditionsconditions makes the conditions that a query's filter is made of, and joins them with and, or and not.paramparam puts a parameter in place of a value in a query that Database.prepare prepares, so that each run of the query gives the value.MigratingMigrating is the write transaction a migration function runs in: the collections of the new schema, and the objects as the schema before the migration read them.
DatabaseDatabase is an open DaruDB file in Dart, through which a program runs transactions, prepares queries and uses the file's tools.AnnotationsThe annotations make a Dart class the objects of a collection, or an embedded object, and darudbgenerator writes the code that stores it.SchemaSchema declares a database's collections at a version, from the schema constants darudbgenerator writes, for Database.open to take.MigrationMigration says what schema version version changes from the version before it, beyond what the engine works out by itself.MigrationContextMigrationContext is what a migration function gets: the collections of the new schema, and the objects as the schema before the migration read them.ReadTransactionA ReadTransaction reads one commit of the database, for as long as the function Database.read runs it in.WriteTransactionA WriteTransaction holds changes to the database that commit together when the function Database.write runs it in returns.ReadCollectionA ReadCollection reads the objects of one collection in a transaction: by primary key, and by query.WriteCollectionA WriteCollection writes the objects of one collection in a write transaction, and reads them as a ReadCollection does.QueryBuilderQueryBuilder holds the parts of a query on one collection: a filter, a sort, an offset and a limit.FieldsA field object names one field in a query, and its methods make the conditions a filter is made of and the changes update makes.
DatabaseDatabase is an open DaruDB file in Python, through which a program runs transactions, prepares queries and uses the file's tools.collectioncollection and embedded make a class the objects of a collection or an embedded object, and field adds to a field what its annotation cannot say.SchemaSchema lists a database's collections, as their classes, at a version, for Database.open to take.MigrationMigration says what schema version version changes from the version before it, beyond what the engine works out by itself.ReadTransactionA ReadTransaction reads one commit of the database, for as long as the with db.read() block that began it runs.WriteTransactionA WriteTransaction holds changes to the database that commit together when the with db.write() block that began it ends.MigratingMigrating is the write transaction a migration function runs in: the collections of the new schema, and the objects as the schema before the migration read them.ReadCollectionA ReadCollection reads the objects of one collection in a transaction: by primary key, and by query.WriteCollectionA WriteCollection writes the objects of one collection in a write transaction, and reads them as a ReadCollection does.QueryA Query says which objects a collection's find, findone and count look for, in what order, and how many.conditionsF names the fields of the objects a query tests, and comparing a field makes a Condition, which joins others with &, | and ~.paramparam puts a parameter in place of a value in a built query, so that each run of the query gives the value.linkedlinked makes a condition on the objects of another collection, or of the same one, that link to an object.
