mirror of
https://gitea.invidious.io/iv-org/shard-crystal-db.git
synced 2024-08-15 00:53:32 +00:00
make Connection#prepared_statements? readonly
This commit is contained in:
parent
d55b088216
commit
4721ecbf6b
4 changed files with 8 additions and 14 deletions
|
@ -212,8 +212,8 @@ def with_dummy(uri : String = "dummy://host?checkout_timeout=0.5")
|
|||
end
|
||||
end
|
||||
|
||||
def with_dummy_connection
|
||||
with_dummy do |db|
|
||||
def with_dummy_connection(options = "")
|
||||
with_dummy("dummy://host?checkout_timeout=0.5&#{options}") do |db|
|
||||
db.using_connection do |cnn|
|
||||
yield cnn.as(DummyDriver::DummyConnection)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue