PersistentStore class abstract

An interface for implementing persistent storage.

You rarely need to use this class directly. See Query for how to interact with instances of this class. Implementors of this class serve as the bridge between Querys and a specific database.

Implementers

Constructors

PersistentStore()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
schemaVersion Future<int>
no setter

Methods

addColumn(SchemaTable table, SchemaColumn column, {String unencodedInitialValue}) List<String>
addIndexToColumn(SchemaTable table, SchemaColumn column) List<String>
addTableUniqueColumnSet(SchemaTable table) List<String>
alterColumnDefaultValue(SchemaTable table, SchemaColumn column) List<String>
alterColumnDeleteRule(SchemaTable table, SchemaColumn column) List<String>
alterColumnNullability(SchemaTable table, SchemaColumn column, String unencodedInitialValue) List<String>
alterColumnUniqueness(SchemaTable table, SchemaColumn column) List<String>
close() Future
Closes the underlying database connection.
createTable(SchemaTable table, {bool isTemporary = false}) List<String>
deleteColumn(SchemaTable table, SchemaColumn column) List<String>
deleteIndexFromColumn(SchemaTable table, SchemaColumn column) List<String>
deleteTable(SchemaTable table) List<String>
deleteTableUniqueColumnSet(SchemaTable table) List<String>
execute(String sql, {Map<String, dynamic> substitutionValues}) Future
Executes an arbitrary command.
executeQuery(String formatString, Map<String, dynamic> values, int timeoutInSeconds, {PersistentStoreQueryReturnType returnType}) Future
newQuery<T extends ManagedObject>(ManagedContext context, ManagedEntity entity, {T values}) Query<T>
Creates a new database-specific Query.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
renameColumn(SchemaTable table, SchemaColumn column, String name) List<String>
renameIndex(SchemaTable table, SchemaColumn column, String newIndexName) List<String>
renameTable(SchemaTable table, String name) List<String>
toString() String
A string representation of this object.
inherited
transaction<T>(ManagedContext transactionContext, Future<T> transactionBlock(ManagedContext transaction)) Future<T>
upgrade(Schema fromSchema, List<Migration> withMigrations, {bool temporary = false}) Future<Schema>

Operators

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