mirror of
https://gitea.invidious.io/iv-org/shard-crystal-db.git
synced 2024-08-15 00:53:32 +00:00
make statement_specs run over a single connection
This commit is contained in:
parent
6e94536a91
commit
6a0a450622
2 changed files with 35 additions and 27 deletions
|
@ -192,3 +192,11 @@ def with_dummy
|
|||
yield db
|
||||
end
|
||||
end
|
||||
|
||||
def with_dummy_connection
|
||||
with_dummy do |db|
|
||||
db.using_connection do |cnn|
|
||||
yield cnn.as(DummyDriver::DummyConnection)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue