struct

DB::PoolStatement

Inherits DB::StatementMethods / Struct / Value / Object

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.

Constructors

new(db : Database, query : String)
Source

Instance methods

exec

See QueryMethods#exec

Source
exec(*args_, args : Enumerable | Nil = nil) : ExecResult

See QueryMethods#exec

Source
query

See QueryMethods#query

Source
query(*args_, args : Enumerable | Nil = nil) : ResultSet

See QueryMethods#query

Source
scalar(*args_, args : Enumerable | Nil = nil)

See QueryMethods#scalar

Source