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