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