Sha256: 34158b0265a17a857ee50cec5d7564abbd522dbfcc4db97174c8ddc271c3d5df

Contents?: true

Size: 357 Bytes

Versions: 6

Compression:

Stored size: 357 Bytes

Contents

module Arql
  class Connection
    class << self
      def open(options)
        ActiveRecord::Base.establish_connection(options)
        $C = ActiveRecord::Base.connection
        $C.define_singleton_method(:dump) do |filename, no_create_db=false|
          Arql::Mysqldump.new.dump_database(filename, no_create_db)
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
arql-0.3.6 lib/arql/connection.rb
arql-0.3.5 lib/arql/connection.rb
arql-0.3.3 lib/arql/connection.rb
arql-0.3.2 lib/arql/connection.rb
arql-0.3.1 lib/arql/connection.rb
arql-0.3.0 lib/arql/connection.rb