instance method fetch_by_schema

Ruby on Rails edge

Since edge Private — implementation detail, not part of the public API

Signature

fetch_by_schema(tables)

One read filters by one schema, so tables naming different schemas are read a schema at a time.

Parameters

tables req
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

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close