class MiniSql::Postgres::PreparedCache
Private Instance Methods
alloc(sql)
click to toggle source
# File lib/mini_sql/postgres/prepared_cache.rb, line 11 def alloc(sql) alloc_key = next_key @connection.prepare(alloc_key, sql) alloc_key end
dealloc(key)
click to toggle source
# File lib/mini_sql/postgres/prepared_cache.rb, line 18 def dealloc(key) @connection.query "DEALLOCATE #{key}" if @connection.status == PG::CONNECTION_OK rescue PG::Error end