class Rasti::DB::DataSource
Attributes
db[R]
schema[R]
Public Class Methods
new(db, schema=nil)
click to toggle source
# File lib/rasti/db/data_source.rb, line 7 def initialize(db, schema=nil) @db = db @schema = schema ? schema.to_sym : nil end
Public Instance Methods
qualify(collection_name)
click to toggle source
# File lib/rasti/db/data_source.rb, line 12 def qualify(collection_name) schema ? Sequel[schema][collection_name] : Sequel[collection_name] end