Prostore::Connection
High-level handle bundling a DB::Database pool with a chosen Adapter.
Per-connection session setup (e.g. PRAGMA foreign_keys = ON for
SQLite, ADR-0012) is installed via DB::Database#setup_connection so
every connection acquired from the pool is initialized.
Connection delegates exec, scalar, query_one, query_one?,
query_each, and transaction directly to the underlying pool, so
callers can use conn.exec(...) rather than conn.db.exec(...).
Constructors
Instance methods
adapter
Sourceclose
Sourcedb
Sourcetransaction
Sourceurl
Sourcewith_connection
Acquire a single connection and yield it. The runner uses this to keep all bootstrap / migration DDL on one connection so that nested operations don't deadlock the pool.