PersistentStore class

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.

Implemented by

Constructors

PersistentStore()

Properties

schemaVersion Future<int>
read-only
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

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) Query<T>
Creates a new database-specific Query. [...]
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>
upgrade(int versionNumber, List<String> commands, { bool temporary: false }) Future
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

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