abstract struct 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 = nil) : ExecResult
exec
, query(*args_, args : Array | Nil = nil, &)
query : ResultSet
query(*args_, args : Array | Nil = nil) : ResultSet
query
, scalar(*args_, args : Array | Nil = nil) scalar

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 = nil) : ExecResult #

[View source]
def query : ResultSet #

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

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

[View source]