DatabaseFactory class abstract

Basic databases operations

Available extensions

Constructors

DatabaseFactory()

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

databaseExists(String path) → Future<bool>
Check if a database exists
deleteDatabase(String path) → Future<void>
Delete a database if it exists
getDatabasesPath() → Future<String>
Get the default databases location path.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
openDatabase(String path, {OpenDatabaseOptions? options}) → Future<Database>
Open a database at path with the given OpenDatabaseOptionsoptions
setDatabasesPath(String path) → Future<void>
Set the default databases location path
setDatabasesPath(String? path) → Future

Available on DatabaseFactory, provided by the SqfliteDatabaseFactoryDev extension

Compat set Databases path.
setLogLevel(int logLevel) → Future<void>

Available on DatabaseFactory, provided by the SqfliteDatabaseFactoryDev extension

Change the log level if you want to see the SQL query executed natively.
setOptions(SqfliteOptions options) → Future<void>

Available on DatabaseFactory, provided by the SqfliteDatabaseFactoryDev extension

Testing only.
toString() → String
A string representation of this object.
inherited

Operators

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