FileBox class

Inheritance

Constructors

FileBox(String _path, Registry registry)

Properties

entities → Map<String, Map>
finalinherited
hashCode → int
The hash code for this object.
no setterinherited
persistent → bool
Returns true if this Box persists stored entities.
no setteroverride
registry → Registry
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
supportsCompositeKey → bool
Returns true if this Box implementation supports composite primary keys.
no setterinherited
supportsIn → bool
Returns true if this Box implementation supports IN conditions.
no setterinherited
supportsLike → bool
Returns true if this Box implementation supports like conditions.
no setterinherited
supportsNot → bool
Returns true if this Box implementation supports the NOT operator.
no setterinherited
supportsOr → bool
Returns true if this Box implementation supports the OR operator.
no setterinherited

Methods

close() → Future
Closes the underlying connection of this Box. After closing, a Box can no longer be used.
inherited
deleteAll<T>([Type? type]) → Future
Deletes all entities of the specified type from this Box.
override
deleteFrom<T>([Type? type]) → DeleteStep<T>
Starts a new delete statement with a condition. SQL equivalent DELETE FROM
inherited
entitiesFor(Type type) → Future<Map>
override
find<T>(dynamic key, [Type? type]) → Future<T?>
Finds an entity of the specified type by primary key.
override
insertAll<T>(Iterable<T> entities) → Future
Inserts all specified entities of the same type in this Box.
inherited
keyOf(dynamic entity) → dynamic
Returns the key of the specified entity.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
select(List<Field> fields) → SelectStep
Starts a new query selecting the specified fields from the specified type. SQL equivalent SELECT
inherited
selectFrom<T>([Type? type, String? alias]) → _QueryStep<T>
Starts a new query selecting all fields from the specified type. SQL: SELECT * FROM
inherited
store<K>(dynamic entity) → Future<K>
Stores an entity in this Box. The entity is persisted if this Box implementation is persistent.
override
storeAll<K>(Iterable entities) → Future<List<K>>
Stores all specified entities in this Box.
inherited
toString() → String
A string representation of this object.
inherited
update<T>([Type? type]) → UpdateStep<T>
Starts a new update statement for the specified type from this Box.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited