PoolConnections class final
A write and a collection of read connections to put into a connection pool.
All connections (readers and writer) should point to the same database file to form a valid pool. Additionally, connections should use the WAL journal mode to support parallel reads and writes.
Constructors
-
PoolConnections(Database writer, List<
Database> readers, {int preparedStatementCacheSize = 0, bool enableNativeUpdateHooks = true})
Properties
- enableNativeUpdateHooks → bool
-
Whether native update notifications backed by
sqlite3_update_hookshould be enabled.final - hashCode → int
-
The hash code for this object.
no setterinherited
- preparedStatementCacheSize → int
-
If set to a positive value, creates a cache of prepared statements for
each connection.
final
-
readers
→ List<
Database> -
Connections used to serve database reads.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- writer → Database
-
The connection used for writes to the database.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited