lib/rasti/db/collection.rb in rasti-db-1.0.0 vs lib/rasti/db/collection.rb in rasti-db-1.1.0
- old
+ new
@@ -1,10 +1,10 @@
module Rasti
module DB
class Collection
- QUERY_METHODS = (Query::DATASET_CHAINED_METHODS + [:graph, :count, :all, :each, :first, :pluck, :primary_keys, :any?, :empty?, :raw]).freeze
+ QUERY_METHODS = (Query::DATASET_CHAINED_METHODS + [:graph, :join, :count, :all, :each, :first, :pluck, :primary_keys, :any?, :empty?, :raw]).freeze
include Enumerable
include Helpers::WithSchema
class << self
@@ -190,10 +190,10 @@
result[attribute_name] = transformed_value
end
end
def qualified_collection_name
- schema.nil? ? self.class.collection_name : Sequel.qualify(schema, self.class.collection_name)
+ schema.nil? ? Sequel[self.class.collection_name] : Sequel[schema][self.class.collection_name]
end
def query
Query.new self.class, dataset, [], schema
end
\ No newline at end of file