DatabaseService class

数据库服务 / Database service 统一管理所有数据库提供者,提供数据库查询接口 / Unified management of all database providers, providing database query interface

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

getDatabases() Future<List<DatabaseInfo>>
获取所有数据库列表 / Get all database list 遍历所有已注册的数据库提供者,合并结果 / Iterate through all registered database providers and merge results
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
queryTable(String dbPath, String tableName, {int limit = 50, int offset = 0, String? orderBy, bool desc = false, String? whereKeyword}) Future<QueryResult>
查询指定表的数据 / Query specified table data 按顺序尝试所有已注册的数据库提供者,返回第一个成功的结果 / Try all registered database providers in order, return the first successful result
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

instance DatabaseService
单例实例 / Singleton instance
final