Sha256: 91c28bb0b6cdf0f6a200b8650ede27fe9bfd2a6ea8b66eca76dc0647d3af39be

Contents?: true

Size: 1.16 KB

Versions: 20

Compression:

Stored size: 1.16 KB

Contents

module ArJdbc
  module Tasks

    def self.register_tasks(pattern, task)
      ActiveRecord::Tasks::DatabaseTasks.register_task(pattern, task)
    end

    # support adapter: mariadb (as if it were mysql)
    register_tasks(/mariadb/, ActiveRecord::Tasks::MySQLDatabaseTasks)

    require 'arjdbc/tasks/jdbc_database_tasks'
    require 'arjdbc/tasks/sqlite_database_tasks_patch'
    #require 'arjdbc/tasks/db2_database_tasks'
    #require 'arjdbc/tasks/derby_database_tasks'
    #require 'arjdbc/tasks/h2_database_tasks'
    #require 'arjdbc/tasks/hsqldb_database_tasks'
    #require 'arjdbc/tasks/mssql_database_tasks'

    # re-invent built-in (but deprecated on 4.0) tasks :
    #register_tasks(/sqlserver/, MSSQLDatabaseTasks)
    #register_tasks(/mssql/, MSSQLDatabaseTasks) # (built-in) alias
    # tasks for custom (JDBC) adapters :
    #register_tasks(/db2/, DB2DatabaseTasks)
    #register_tasks(/derby/, DerbyDatabaseTasks)
    #register_tasks(/h2/, H2DatabaseTasks)
    #register_tasks(/hsqldb/, HSQLDBDatabaseTasks)
    # (default) generic JDBC task :
    register_tasks(/^jdbc$/, JdbcDatabaseTasks)

    # NOTE: no need to register "built-in" adapters such as MySQL

  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
activerecord-jdbc-adapter-61.3-java lib/arjdbc/tasks/database_tasks.rb
activerecord-jdbc-adapter-70.0-java lib/arjdbc/tasks/database_tasks.rb
activerecord-jdbc-adapter-70.0.pre-java lib/arjdbc/tasks/database_tasks.rb
activerecord-jdbc-adapter-61.2-java lib/arjdbc/tasks/database_tasks.rb
activerecord-jdbc-adapter-61.1-java lib/arjdbc/tasks/database_tasks.rb
activerecord-jdbc-adapter-60.4-java lib/arjdbc/tasks/database_tasks.rb
activerecord-jdbc-adapter-52.8-java lib/arjdbc/tasks/database_tasks.rb
activerecord-jdbc-adapter-61.0-java lib/arjdbc/tasks/database_tasks.rb
activerecord-jdbc-adapter-60.3-java lib/arjdbc/tasks/database_tasks.rb
activerecord-jdbc-adapter-52.7-java lib/arjdbc/tasks/database_tasks.rb
activerecord-jdbc-adapter-60.2-java lib/arjdbc/tasks/database_tasks.rb
activerecord-jdbc-adapter-52.6-java lib/arjdbc/tasks/database_tasks.rb
activerecord-jdbc-adapter-60.1-java lib/arjdbc/tasks/database_tasks.rb
activerecord-jdbc-adapter-52.5-java lib/arjdbc/tasks/database_tasks.rb
activerecord-jdbc-adapter-60.0-java lib/arjdbc/tasks/database_tasks.rb
activerecord-jdbc-adapter-52.4-java lib/arjdbc/tasks/database_tasks.rb
activerecord-jdbc-adapter-52.3-java lib/arjdbc/tasks/database_tasks.rb
activerecord-jdbc-adapter-60.0.rc1-java lib/arjdbc/tasks/database_tasks.rb
activerecord-jdbc-adapter-52.2-java lib/arjdbc/tasks/database_tasks.rb
activerecord-jdbc-adapter-52.1-java lib/arjdbc/tasks/database_tasks.rb