topaz v0.2.1 Release Notes
Release Date: 2016-12-17 // over 7 years ago-
- ๐ Support transaction! ๐ (Thanks @bcardiff)
- ๐
join
is deprecated
๐ See sample/transaction.cr as a sample code
[Sample code] Topaz::Db.shared.transaction do |tx| Sample.in(tx).create("sample0") Sample.in(tx).create("sample1") ... t0 = Sample.in(tx).find(1) t0.in(tx).update(name: "sample0 updated") end