Class: Syntropy::Storage::PreparedQuery
- Inherits:
-
Object
- Object
- Syntropy::Storage::PreparedQuery
- Defined in:
- lib/syntropy/storage/prepared_query.rb
Overview
Represents information about a prepared query
Instance Attribute Summary collapse
-
#mode ⇒ Object
readonly
Returns the value of attribute mode.
-
#sql ⇒ Object
readonly
Returns the value of attribute sql.
Instance Method Summary collapse
-
#initialize(sql, mode = :prepare) ⇒ PreparedQuery
constructor
A new instance of PreparedQuery.
Constructor Details
#initialize(sql, mode = :prepare) ⇒ PreparedQuery
Returns a new instance of PreparedQuery.
21 22 23 24 |
# File 'lib/syntropy/storage/prepared_query.rb', line 21 def initialize(sql, mode = :prepare) @sql = sql @mode = mode end |
Instance Attribute Details
#mode ⇒ Object (readonly)
Returns the value of attribute mode.
19 20 21 |
# File 'lib/syntropy/storage/prepared_query.rb', line 19 def mode @mode end |
#sql ⇒ Object (readonly)
Returns the value of attribute sql.
19 20 21 |
# File 'lib/syntropy/storage/prepared_query.rb', line 19 def sql @sql end |