instance method
quoted_scope
Ruby on Rails 6.0.6
Since v5.2.8.1 PrivateSignature
quoted_scope(name = nil, type: nil)
No documentation comment.
Parameters
-
nameopt = nil -
typekey = nil
Source
# File activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb, line 737
def quoted_scope(name = nil, type: nil)
schema, name = extract_schema_qualified_name(name)
type = \
case type
when "BASE TABLE"
"'r','p'"
when "VIEW"
"'v','m'"
when "FOREIGN TABLE"
"'f'"
end
scope = {}
scope[:schema] = schema ? quote(schema) : "ANY (current_schemas(false))"
scope[:name] = quote(name) if name
scope[:type] = type if type
scope
end
Defined in activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb line 737
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::ConnectionAdapters::PostgreSQL::SchemaStatements