NewStorage returns a Storage bound to the given pool. Caller is responsible for the pool's lifecycle; this struct doesn't own it.
(pool *pgxpool.Pool)
| 67 | // NewStorage returns a Storage bound to the given pool. Caller is |
| 68 | // responsible for the pool's lifecycle; this struct doesn't own it. |
| 69 | func NewStorage(pool *pgxpool.Pool) *Storage { |
| 70 | return &Storage{pool: pool} |
| 71 | } |
| 72 | |
| 73 | // Pool exposes the underlying pgxpool. Reserved for callers that need |
| 74 | // the raw pool — for example, opening a transaction that this package |
no outgoing calls