PostgreSQLPersistentStore class

The database layer responsible for carrying out Querys against PostgreSQL databases.

To interact with a PostgreSQL database, a ManagedContext must have an instance of this class. Instances of this class are configured to connect to a particular PostgreSQL database.

Inheritance

Constructors

PostgreSQLPersistentStore(PostgreSQLConnectionFunction connectFunction)
Creates an instance of this type from a manual function.
PostgreSQLPersistentStore.fromConnectionInfo(String username, String password, String host, int port, String databaseName, { String timeZone: "UTC", bool useSSL: false })
Creates an instance of this type from connection info.

Properties

connectFunction PostgreSQLConnectionFunction
The function that will generate a PostgreSQLConnection when this instance does not have a valid one.
read / write
connectTimeout Duration
Amount of time to wait before connection fails to open. [...]
read / write
databaseName String
The name of the database this instance connects to.
read / write
host String
The host of the database this instance connects to.
read / write
isConnected bool
Whether or not the underlying database connection is open. [...]
read-only
password String
The password of the database user for the database this instance connects to.
read / write
port int
The port of the database this instance connects to.
read / write
schemaVersion Future<int>
read-only
timeZone String
The time zone of the connection to the database this instance connects to.
read / write
username String
The username of the database user for the database this instance connects to.
read / write
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
versionTable SchemaTable
read-only, inherited
versionTableName String
read-only, inherited

Methods

close() Future
Closes the underlying database connection.
execute(String sql, { Map<String, dynamic> substitutionValues }) Future
Executes an arbitrary command.
executeQuery(String formatString, Map<String, dynamic> values, int timeoutInSeconds, { PersistentStoreQueryReturnType returnType: PersistentStoreQueryReturnType.rows }) Future
getDatabaseConnection() Future<PostgreSQLConnection>
Retrieves a connection to the database this instance connects to. [...]
newQuery<T extends ManagedObject>(ManagedContext context, ManagedEntity entity) Query<T>
Creates a new database-specific Query. [...]
upgrade(int versionNumber, List<String> commands, { bool temporary: false }) Future
addColumn(SchemaTable table, SchemaColumn column, { String unencodedInitialValue }) List<String>
inherited
addIndexToColumn(SchemaTable table, SchemaColumn column) List<String>
inherited
addTableUniqueColumnSet(SchemaTable table) List<String>
inherited
alterColumnDefaultValue(SchemaTable table, SchemaColumn column) List<String>
inherited
alterColumnDeleteRule(SchemaTable table, SchemaColumn column) List<String>
inherited
alterColumnNullability(SchemaTable table, SchemaColumn column, String unencodedInitialValue) List<String>
inherited
alterColumnUniqueness(SchemaTable table, SchemaColumn column) List<String>
inherited
createTable(SchemaTable table, { bool isTemporary: false }) List<String>
inherited
deleteColumn(SchemaTable table, SchemaColumn column) List<String>
inherited
deleteIndexFromColumn(SchemaTable table, SchemaColumn column) List<String>
inherited
deleteTable(SchemaTable table) List<String>
inherited
deleteTableUniqueColumnSet(SchemaTable table) List<String>
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
renameColumn(SchemaTable table, SchemaColumn column, String name) List<String>
inherited
renameIndex(SchemaTable table, SchemaColumn column, String newIndexName) List<String>
inherited
renameTable(SchemaTable table, String name) List<String>
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

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

Static Properties

logger Logger
The logger used by instances of this class.
read / write