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

Constructors

Instance Method Summary

Instance methods inherited from module DB::StatementMethods

exec : ExecResult
exec(*args_, args : Array? = nil) : ExecResult
exec
, query(*args_, args : Array? = nil, &)
query : ResultSet
query(*args_, args : Array? = nil) : ResultSet
query
, scalar(*args_, args : Array? = nil) scalar

Instance methods inherited from module DB::Disposable

close close, closed? closed?

Constructor Detail

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

[View source]

Instance Method Detail

def exec : ExecResult #

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

[View source]
def query : ResultSet #

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

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

[View source]