DatabaseItemEditor mixin Null safety

Superclass Constraints
Implemented by

Constructors

DatabaseItemEditor()

Properties

db Database
The database connection to handle data storage operations
read / write, inherited
name String
Name of the database
final, inherited
version int
The current version of the database
final, inherited
schema Map<String, List<String>>
The database schema as a map of the table name to the column names
final, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
tableNames List<String>
List of table names currently in database
read-only, inherited

Methods

addItem(DatabaseItem item) Future
Adds an item to the database [...]
verifySchema(DatabaseItem item) → dynamic
Verifies the database schema for the current item
getItem(String table, String id) Future<Map<String, dynamic>?>
Gets an item from the database table with id indicated
updateItem(DatabaseItem item) Future<int>
Deletes an item from the database
deleteItem(String table, String id) Future<int>
Deletes an item from the database table with id indicated
ensureDbOpen() Future<void>
Ensures that a databse connection is open before using db
inherited
updateTableSchema(String table, List<String> columns) → dynamic
Updates the schema
inherited
toString() String
A string representation of this object. [...]
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
loadTableSchema() Future<void>
Loads the table schema from the database
inherited
addTable(String tableName, {DatabaseItem? item}) Future<void>
Adds a table to the database
inherited
getItems(String table) Future<List<Map<String, dynamic>>>
Gets all items from the database table
inherited
addColumn(String table, String columnName, String dataType) Future<void>
Adds a column with columnName and dataType to a table in the database
inherited
deleteTable(String tableName) → dynamic
Deletes the table with tableName from the database
inherited

Operators

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