1 # arjdbc/discover.rb: Declare ArJdbc.extension modules in this file
2 # that loads a custom module and adapter.
5 # Adapters built-in to AR are required up-front so we can override
8 extension :MySQL do |name|
12 require 'arjdbc/postgresql'
13 extension :PostgreSQL do |name|
17 require 'arjdbc/sqlite3'
18 extension :SQLite3 do |name|
22 # Other adapters are lazy-loaded
23 extension :DB2 do |name, config|
24 if name =~ /(db2|as400)/i && config[:url] !~ /^jdbc:derby:net:/
30 extension :Derby do |name|
32 require 'arjdbc/derby'
37 extension :FireBird do |name|
38 if name =~ /firebird/i
39 require 'arjdbc/firebird'
44 extension :H2 do |name|
51 extension :HSQLDB do |name|
53 require 'arjdbc/hsqldb'
58 extension :Informix do |name|
59 if name =~ /informix/i
60 require 'arjdbc/informix'
65 extension :Mimer do |name|
67 require 'arjdbc/mimer'
72 extension :MsSQL do |name|
73 if name =~ /sqlserver|tds|Microsoft SQL/i
74 require 'arjdbc/mssql'
79 extension :Oracle do |name|
81 require 'arjdbc/oracle'
86 extension :Sybase do |name|
87 if name =~ /sybase|tds/i
88 require 'arjdbc/sybase'