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