TarsierLocalStorage class
A local storage manager class for handling database operations.
This class provides methods for initializing, opening, and managing a local SQLite database. It supports creating tables dynamically based on the provided list of BaseTable objects.
Constructors
Properties
-
database
→ Future<
Database> -
Returns the initialized database instance.
no setter
- databaseFile → File?
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
backup(
{required String backupDirectory, bool archive = false, String extension = '.bk', void onStatusChanged(BackupStatus status)?}) → Future< void> - Backs up the SQLite database to a specified directory.
-
init(
String databaseFile, [List< BaseTable< tables = const []]) → Future<BaseTableModel> >Database> - Initializes the database.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
open(
String databaseFile, List< BaseTable< tables, {dynamic delete = false}) → Future<BaseTableModel> >Database> - Opens the database file or creates it if it doesn't exist.
-
restore(
{required String backupPath, void onStatusChanged(RestoreStatus status)?}) → Future< void> - Restores the SQLite database from a backup file.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited