db library

Classes

BlobProperty
A binary blob Property.
BoolProperty
A boolean Property.
DatastoreDB
DateTimeProperty
A datetime Property.
DoubleProperty
A double Property.
ExpandoModel<T>
Superclass for all expanded model classes.
IdType
The type used for id's of an entity.
IntProperty
A integer Property.
Key<T>
Represents a unique identifier for a Model stored in a datastore.
Kind
Annotation used to mark dart classes which can be stored into datastore.
ListProperty
A composed list Property, with a subProperty for the list elements.
Model<T>
Superclass for all model classes.
ModelDB
A database of all registered models.
ModelDBImpl
An implementation of ModelDB based on model class annotations.
ModelKeyProperty
A key Property.
Partition
Represents a datastore partition.
PrimitiveProperty
An abstract base class for primitive properties which can e.g. be used within a composed ListProperty.
Property
Describes a property of an Entity.
Query<T extends Model>
StringListProperty
A convenience Property for list of strings.
StringProperty
A string Property.
Transaction
A datastore transaction.

Properties

dbService DatastoreDB
Access the DatastoreDB object available in the current service scope.
no setter

Functions

registerDbService(DatastoreDB db) → void
Registers the DatastoreDB object within the current service scope.

Typedefs

TransactionHandler<T> = Future<T> Function(Transaction transaction)
A function definition for transactional functions.

Exceptions / Errors

KeyNotFoundException
Exception that gets thrown when a caller attempts to look up a value by its key, and the key cannot be found in the datastore.