Class: ActiveRecord::ConnectionAdapters::NullPool
- Includes:
 - AbstractPool
 
- Defined in:
 - activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb
 
Overview
:nodoc:
Defined Under Namespace
Classes: NullConfig
Constant Summary collapse
- NULL_CONFIG =
          
:nodoc:
 NullConfig.new
Instance Method Summary collapse
- #async_executor ⇒ Object
 - #checkin(_) ⇒ Object
 - #connection_descriptor ⇒ Object
 - #db_config ⇒ Object
 - #dirties_query_cache ⇒ Object
 - 
  
    
      #initialize  ⇒ NullPool 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of NullPool.
 - #remove(_) ⇒ Object
 - #schema_cache ⇒ Object
 - #schema_reflection ⇒ Object
 - 
  
    
      #server_version(connection)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
:nodoc:.
 
Constructor Details
#initialize ⇒ NullPool
Returns a new instance of NullPool.
      24 25 26 27 28  | 
    
      # File 'activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb', line 24 def initialize super() @mutex = Mutex.new @server_version = nil end  | 
  
Instance Method Details
#async_executor ⇒ Object
      42  | 
    
      # File 'activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb', line 42 def async_executor; end  | 
  
#checkin(_) ⇒ Object
      40  | 
    
      # File 'activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb', line 40 def checkin(_); end  | 
  
#connection_descriptor ⇒ Object
      39  | 
    
      # File 'activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb', line 39 def connection_descriptor; end  | 
  
#db_config ⇒ Object
      44 45 46  | 
    
      # File 'activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb', line 44 def db_config NULL_CONFIG end  | 
  
#dirties_query_cache ⇒ Object
      48 49 50  | 
    
      # File 'activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb', line 48 def dirties_query_cache true end  | 
  
#remove(_) ⇒ Object
      41  | 
    
      # File 'activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb', line 41 def remove(_); end  | 
  
#schema_cache ⇒ Object
      38  | 
    
      # File 'activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb', line 38 def schema_cache; end  | 
  
#schema_reflection ⇒ Object
      34 35 36  | 
    
      # File 'activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb', line 34 def schema_reflection SchemaReflection.new(nil) end  | 
  
#server_version(connection) ⇒ Object
:nodoc:
      30 31 32  | 
    
      # File 'activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb', line 30 def server_version(connection) # :nodoc: @server_version || @mutex.synchronize { @server_version ||= connection.get_database_version } end  |