DetaBase class abstract
An interface for interact with NoSQL database, usign the service of the Deta Base.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
delete(
String key) → Future< bool> - Deletes an item from the database.
-
fetch(
{List< DetaQuery> query = const [], int limit = 1000, String last = ''}) → Future<Map< String, dynamic> > - Retrieves multiple items from the database based on the provided (optional) filters.
-
get(
String key) → Future< Map< String, dynamic> > - Retrieves an item from the database by its key.
-
insert(
Object item, {String? key}) → Future< Map< String, dynamic> > - Stores an item in the database but raises an error if the key already exists.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
put(
Object item, {String? key}) → Future< Map< String, dynamic> > - Stores an item in the database.
-
putMany(
{required List< Object> items}) → Future<List< Map< >String, dynamic> > - Stores a list if items in the database.
-
toString(
) → String -
A string representation of this object.
inherited
-
update(
{required String key, required Map item}) → Future< Map> - Updates an item in the database.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited