Module SemanticRecord::Pool
In: lib/semantic_record/connection_pool.rb

Methods

connections   load   register  

Classes and Modules

Class SemanticRecord::Pool::Connection

Public Class methods

[Source]

    # File lib/semantic_record/connection_pool.rb, line 11
11:   def self.connections
12:     @connections
13:   end

[Source]

    # File lib/semantic_record/connection_pool.rb, line 15
15:   def self.load(file = nil)
16:     if file
17:       process_config(file)
18:     else
19:       raise ArgumentError, "no rails environment found, propably not running in an rails setting?"
20:     end
21:   end

[Source]

   # File lib/semantic_record/connection_pool.rb, line 7
7:   def self.register(connection)
8:     @connections << Connection.new(connection)
9:   end

[Validate]