module ActiveRecord::Import

def self.load_from_connection_pool(connection_pool)

Loads the import functionality for the passed in ActiveRecord connection
def self.load_from_connection_pool(connection_pool)
  require_adapter connection_pool.spec.config[:adapter]
end

def self.require_adapter(adapter)

Loads the import functionality for a specific database adapter
def self.require_adapter(adapter)
  require File.join(AdapterPath,"/abstract_adapter")
  require File.join(AdapterPath,"/#{adapter}_adapter")
end