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(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.
PostgreSQLPersistentStore.fromConnectionInfo(String username, String password, String host, int port, String databaseName, { String timeZone: "UTC", bool useSSL: false })
Same constructor as default constructor. [...]

Properties

connectTimeout Duration
Amount of time to wait before connection fails to open. [...]
final
databaseName String
The name of the database this instance connects to.
final
host String
The host of the database this instance connects to.
final
isConnected bool
Whether or not the underlying database connection is open. [...]
read-only
isSSLConnection bool
Whether this connection is established over SSL.
final
password String
The password of the database user for the database this instance connects to.
final
port int
The port of the database this instance connects to.
final
schemaVersion Future<int>
read-only, override
timeZone String
The time zone of the connection to the database this instance connects to.
final
username String
The username of the database user for the database this instance connects to.
final
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.
override
execute(String sql, { Map<String, dynamic> substitutionValues, Duration timeout }) Future
Executes an arbitrary command.
override
executeQuery(String formatString, Map<String, dynamic> values, int timeoutInSeconds, { PersistentStoreQueryReturnType returnType: PersistentStoreQueryReturnType.rows }) Future
override
getDatabaseConnection() Future<PostgreSQLConnection>
Retrieves a connection to the database this instance connects to. [...]
newQuery<T extends ManagedObject>(ManagedContext context, ManagedEntity entity, { T values }) Query<T>
Creates a new database-specific Query. [...]
override
transaction<T>(ManagedContext transactionContext, Future<T> transactionBlock(ManagedContext transaction)) Future<T>
override
upgrade(Schema fromSchema, List<Migration> withMigrations, { bool temporary: false }) Future<Schema>
override
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