instance method
fetch_by_schema
Ruby on Rails edge
Since edge Private — implementation detail, not part of the public APISignature
fetch_by_schema(tables)
One read filters by one schema, so tables naming different schemas are read a schema at a time.
Parameters
-
tablesreq
Source
# File activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb, line 1741
def fetch_by_schema(tables)
tables.group_by { |table| quoted_scope(table)[:schema] }
.each_with_object({}) { |(schema, group), result| result.merge!(yield(schema, group)) }
end
Defined in activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb line 1741
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::ConnectionAdapters::SchemaStatements