abstract class DB::PoolStatement

Overview

When a statement is to be executed in a DB that has a connection pool a statement from the DB needs to be able to represent a statement in any of the connections of the pool. Otherwise the user will need to deal with actual connections in some point.

Included Modules

Defined in:

lib/db/src/db/pool_statement.cr
avram/pool_statement_logging.cr

Instance Method Summary

Instance methods inherited from class Object

blank_for_validates_required? : Bool blank_for_validates_required?

Instance Method Detail

def exec : ExecResult #

See QueryMethods#exec


[View source]
def exec(*args_, args : Array | Nil = nil) : ExecResult #

See QueryMethods#exec


[View source]
def query : ResultSet #

See QueryMethods#query


[View source]
def query(*args_, args : Array | Nil = nil) : ResultSet #

See QueryMethods#query


[View source]
def scalar(*args_, args : Array | Nil = nil) #

See QueryMethods#scalar


[View source]