MethodChannelEasyDb class

An implementation of EasyDbPlatform that uses method channels.

Inheritance

Constructors

MethodChannelEasyDb()

Properties

hashCode → int
The hash code for this object.
no setterinherited
methodChannel → MethodChannel
The method channel used to interact with the native platform.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

close() → Future<void>
Close the database
override
delete(String table, {String? where, List? whereArgs}) → Future<int>
Delete data from the database
override
getPlatformVersion() → Future<String?>
override
init(String dbName) → Future<void>
Initialize the database
override
insert(String table, Map<String, dynamic> data) → Future<int>
Insert data into the database
override
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
override
rawQuery(String sql, [List? arguments]) → Future<List<Map<String, dynamic>>>
Execute raw SQL query
override
rawUpdate(String sql, [List? arguments]) → Future<int>
Execute raw SQL update
override
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
override

Operators

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