yegor256/pgtk

transactions

Closed this issue · 3 comments

Let's make something like this possible:

pgsql.transaction do |t|
  id = t.exec('INSERT INTO user (name) VALUES ($1) RETURNING id', ['yegor'])[0]['id'].to_i
  t.exec('INSERT INTO account (user) VALUES ($1)', [id])
end

@rultor release, tag is 0.3.0

@rultor release, tag is 0.3.0

@yegor256 OK, I will release it now. Please check the progress here

@rultor release, tag is 0.3.0

@yegor256 Done! FYI, the full log is here (took me 4min)