class Barely::ConnectionPool
Attributes
connection[R]
spec[R]
Public Class Methods
new()
click to toggle source
# File lib/barely.rb, line 102 def initialize @spec = Spec.new(:adapter => 'america') @connection = Connection.new @connection.visitor = Arel::Visitors::ToSql.new(connection) end
Public Instance Methods
columns_hash()
click to toggle source
# File lib/barely.rb, line 116 def columns_hash connection.columns_hash end
quote(thing, column = nil)
click to toggle source
# File lib/barely.rb, line 124 def quote thing, column = nil connection.quote thing, column end
schema_cache()
click to toggle source
# File lib/barely.rb, line 120 def schema_cache connection end
table_exists?(name)
click to toggle source
# File lib/barely.rb, line 112 def table_exists? name connection.tables.include? name.to_s end
with_connection() { |connection| ... }
click to toggle source
# File lib/barely.rb, line 108 def with_connection yield connection end