-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Labels
breakingBreaking changeBreaking changedesign flawWorks as expected, but overall wrongWorks as expected, but overall wrong
Milestone
Description
2.times do
spawn do
Onyx::SQL.transaction do |tx|
sleep(rand)
Onyx::SQL.query # Which tx is it using now – the first or the second one?
end
end
endProposed API:
Onyx::SQL.transaction do |tx|
repo = Onyx::SQL.repo.dup
repo.db = tx # Should patch Onyx::SQL for that
repo.query() # Instead of Onyx::SQL.query
# The tx is commited in the end as before
endMetadata
Metadata
Assignees
Labels
breakingBreaking changeBreaking changedesign flawWorks as expected, but overall wrongWorks as expected, but overall wrong