SQLiteConnectionPool
An implementation of a connection pool providing asynchronous access to a single writer and multiple readers.
This is the underlying pool implementation on which the higher-level PowerSync Kotlin SDK is built on. The SDK provides its own pool, but can also use existing implementations (via com.powersync.PowerSyncDatabase.opened).
Properties
Functions
Link copied to clipboard
abstract suspend fun <R> withAllConnections(action: suspend (writer: SQLiteConnectionLease, readers: List<SQLiteConnectionLease>) -> R)
Invokes the callback with all connections leased from the pool.