Module: Flounder
- Defined in:
- lib/flounder.rb,
lib/flounder/field.rb,
lib/flounder/domain.rb,
lib/flounder/engine.rb,
lib/flounder/entity.rb,
lib/flounder/relation.rb,
lib/flounder/immediate.rb,
lib/flounder/connection.rb,
lib/flounder/exceptions.rb,
lib/flounder/entity_alias.rb,
lib/flounder/postgres_utils.rb,
lib/flounder/connection_pool.rb,
lib/flounder/symbol_extensions.rb
Defined Under Namespace
Modules: Expression, Helpers, PostgresUtils, Query, Result, SymbolExtensions
Classes: BindIndexOutOfBounds, Connection, ConnectionPool, Domain, DuplicateField, Engine, Entity, EntityAlias, Field, Immediate, InvalidFieldReference, NoSuchEntity, Relation
Class Method Summary
collapse
Class Method Details
.connect(opts = {}) ⇒ Object
30
31
32
|
# File 'lib/flounder.rb', line 30
def connect opts={}
ConnectionPool.new(opts)
end
|
.domain(connection, &block) ⇒ Object
34
35
36
|
# File 'lib/flounder.rb', line 34
def domain connection, &block
Domain.new(connection).tap { |d| yield d if block_given? }
end
|
.literal(str) ⇒ Object
38
39
40
|
# File 'lib/flounder.rb', line 38
def literal str
Arel::Nodes::SqlLiteral.new(str)
end
|