EasyDbPlatform class abstract

Platform interface for EasyDb

This class should be extended by platform-specific implementations.

Inheritance
  • Object
  • PlatformInterface
  • EasyDbPlatform
Implementers

Constructors

EasyDbPlatform()
Constructs a EasyDbPlatform.

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

close() Future<void>
Close the database
delete(String table, {String? where, List? whereArgs}) Future<int>
Delete data from the database
getPlatformVersion() Future<String?>
init(String dbName) Future<void>
Initialize the database
insert(String table, Map<String, dynamic> data) Future<int>
Insert data into the database
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
query(String table, {String? where, List? whereArgs, String? orderBy, int? limit, int? offset}) Future<List<Map<String, dynamic>>>
Query data from the database
rawQuery(String sql, [List? arguments]) Future<List<Map<String, dynamic>>>
Execute raw SQL query
rawUpdate(String sql, [List? arguments]) Future<int>
Execute raw SQL update
toString() String
A string representation of this object.
inherited
update(String table, Map<String, dynamic> data, {String? where, List? whereArgs}) Future<int>
Update data in the database

Operators

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

Static Properties

instance EasyDbPlatform
The default instance of EasyDbPlatform to use.
getter/setter pair