DefaultDatabaseOpener class
默认的数据库打开方式:drift 的 NativeDatabase 在独立的 isolate 中执行 SQL(《1.本地存储》第 4 节)。
WAL 模式、synchronous = NORMAL;key 不为 null 时先执行 PRAGMA key(SQLCipher,第 7 节)。
- Implemented types
Constructors
- DefaultDatabaseOpener({bool background = true})
-
const
Properties
- background → bool
-
false 时在当前 isolate 中执行(命令行工具、测试)。
final
- 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 path) → Future< void> -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
open(
String? path, {String? key}) → Future< SqlConnection> -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited