class Focus::TransactionManager

Overview

As long as I limit usage to block forms I can lean on crystal-db's connection and transaction handling

Defined in:

focus/transaction_manager.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(raw_db : DB::Database) #

[View source]

Instance Method Detail

def with_connection(&block : DB::Connection -> T) : T forall T #

[View source]
def with_transaction(&block : DB::Transaction -> T) : T | Nil forall T #

[View source]