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

Direct Known Subclasses

Defined in:

db/pool_statement.cr

Class Method Summary

Instance Method Summary

Instance methods inherited from module DB::StatementMethods

exec(args : Array) : ExecResult
exec : ExecResult
exec(*args) : ExecResult
exec
, query(*args, &block)
query(args : Array) : ResultSet
query : ResultSet
query(*args) : ResultSet
query
, scalar(*args) scalar

Instance methods inherited from module DB::Disposable

close close, closed? closed?

Class Method Detail

def self.new(db : Database, query : String) #

[View source]

Instance Method Detail

def exec(args : Array) : ExecResult #

[View source]
def exec : ExecResult #

[View source]
def exec(*args) : ExecResult #

[View source]
def query(args : Array) : ResultSet #

[View source]
def query : ResultSet #

[View source]
def query(*args) : ResultSet #

[View source]
def scalar(*args) #

[View source]