Skip to content

Commit 7be04a8

Browse files
committed
Add query, execute methods to ConnectionPool
1 parent d81da5a commit 7be04a8

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

lib/syntropy/connection_pool.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,14 @@ def with_db
3131
end
3232
end
3333

34+
def query(sql, *, **, &)
35+
with_db { it.query(sql, *, **, &) }
36+
end
37+
38+
def execute(sql, *, **)
39+
with_db { it.execute(sql, *, **) }
40+
end
41+
3442
private
3543

3644
def checkout

0 commit comments

Comments
 (0)