Class: SQLite3::Database

Inherits:
Object
  • Object
show all
Defined in:
lib/drip3.rb

Instance Method Summary collapse

Instance Method Details

#statement(s) ⇒ Object



7
8
9
10
11
12
# File 'lib/drip3.rb', line 7

def statement(s)
  if @cache.nil?
    @cache = Hash.new { |h, k| h[k] = self.prepare(k) }
  end
  @cache[s]
end