Sha256: 84141d96d4c9e1d32d0b70f20525a84ed220def8da970c3dd5196871bb4bf1e0

Contents?: true

Size: 335 Bytes

Versions: 8

Compression:

Stored size: 335 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

8 entries across 8 versions & 1 rubygems

Version Path
rasti-db-2.3.3 lib/rasti/db/data_source.rb
rasti-db-2.3.2 lib/rasti/db/data_source.rb
rasti-db-2.3.1 lib/rasti/db/data_source.rb
rasti-db-2.3.0 lib/rasti/db/data_source.rb
rasti-db-2.2.0 lib/rasti/db/data_source.rb
rasti-db-2.1.0 lib/rasti/db/data_source.rb
rasti-db-2.0.1 lib/rasti/db/data_source.rb
rasti-db-2.0.0 lib/rasti/db/data_source.rb