Method: Sequel::Dataset::ArgumentMapper#prepared_sql
- Defined in:
- lib/sequel/dataset/prepared_statements.rb
#prepared_sql ⇒ Object
Override the given *_sql method based on the type, and cache the result of the sql.
65 66 67 68 69 70 |
# File 'lib/sequel/dataset/prepared_statements.rb', line 65 def prepared_sql if sql = @opts[:prepared_sql] || cache_get(:_prepared_sql) return sql end cache_set(:_prepared_sql, super) end |