class Movie::Persistence::ProjectionTransaction

Overview

SQL transaction exposed to a projection handler. Statements use portable ? placeholders; the owning backend rewrites them for its SQL dialect.

Defined in:

movie/persistence/protocol.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(connection : DB::Connection, bind_sql : Proc(String, String)) #

[View source]

Instance Method Detail

def exec(sql : String, args : DbArgs = [] of DB::Any) : DB::ExecResult #

[View source]
def query_one?(sql : String, as type : T.class, args : DbArgs = [] of DB::Any) : T | Nil forall T #

[View source]