module

DB::SessionMethods(Session, Stmt)

Inherits DB::QueryMethods

Methods that are shared accross session like objects:

  • Database
  • Connection

Classes that includes this module are able to execute queries and statements in both prepared and unprepared fashion.

This module serves for dsl reuse over session like objects.

Instance methods

build(query) : Stmt

:nodoc:

Source
build_unprepared_statement(query) : Stmt
Source
fetch_or_build_prepared_statement(query) : Stmt
Source
prepared(query)

Returns a prepared Statement that has not been executed yet.

Source
prepared

dsl helper to build prepared statements returns a value that includes QueryMethods

Source
prepared_statements?

Returns whether by default the statements should be prepared or not.

Source
prepared_statements_cache?
Source
unprepared(query)

Returns an unprepared Statement that has not been executed yet.

Source
unprepared

dsl helper to build unprepared statements returns a value that includes QueryMethods

Source

Nested types