Sha256: 5fd5573af3f105324c6550f4061473bffa512a851abd3e8878d09e85db9b5229

Contents?: true

Size: 326 Bytes

Versions: 1

Compression:

Stored size: 326 Bytes

Contents

module Sequel

  class << self
    def fos(odbc_name,opts={})
      db = Sequel.odbc(odbc_name,opts)
      db.extend(Sequel::Pervasive::DatabaseMethods)
      db
    end

    # sets the db to all sequel models
    def set_db(db)
      Sequel::Model.find_children.each { |klass| klass.to_s.constantize.db=db }
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fossil-0.4.19 lib/sequel/core_patch.rb