class DB::PoolPreparedStatement

Overview

Represents a statement to be executed in any of the connections of the pool. The statement is not be executed in a prepared fashion. The execution of the statement is retried according to the pool configuration.

See PoolStatement

Defined in:

db/pool_prepared_statement.cr

Class Method Summary

Instance methods inherited from class DB::PoolStatement

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

Class methods inherited from class DB::PoolStatement

new(db : Database, query : String) new

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]