Sha256: 1862b34477f8f3e11307ef3a68cc0af78285080085650405c3c1ca83ec284168

Contents?: true

Size: 329 Bytes

Versions: 5

Compression:

Stored size: 329 Bytes

Contents

module Rasti
  module DB
    class DataSource

      attr_reader :db, :schema

      def initialize(db, schema=nil)
        @db = db
        @schema = schema ? schema.to_sym : nil
      end

      def qualify(collection_name)
        schema ? Sequel[schema][collection_name] : Sequel[collection_name]
      end

    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rasti-db-4.2.0 lib/rasti/db/data_source.rb
rasti-db-4.1.1 lib/rasti/db/data_source.rb
rasti-db-4.1.0 lib/rasti/db/data_source.rb
rasti-db-4.0.0 lib/rasti/db/data_source.rb
rasti-db-3.0.0 lib/rasti/db/data_source.rb