module Flounder

Public Class Methods

literal(str) click to toggle source
# File lib/flounder.rb, line 38
def literal str
  Arel::Nodes::SqlLiteral.new(str)
end

Public Instance Methods

connect(opts={}) click to toggle source
# File lib/flounder.rb, line 30
def connect opts={}
  ConnectionPool.new(opts)
end
domain(connection) { |d| ... } click to toggle source
# File lib/flounder.rb, line 34
def domain connection, &block
  Domain.new(connection).tap { |d| yield d if block_given? }
end

Private Instance Methods

literal(str) click to toggle source
# File lib/flounder.rb, line 38
def literal str
  Arel::Nodes::SqlLiteral.new(str)
end