class ActiveRecord::ConnectionAdapters::PostgreSQL::Name
Experimental RBS support (using type sampling data from the type_fusion
project).
# sig/active_record/connection_adapters/postgresql/utils.rbs class ActiveRecord::ConnectionAdapters::PostgreSQL::Name def initialize: (nil schema, String? identifier) -> void end
:nodoc:
double quoting.
schema qualified type names. schema
and identifier
are unquoted to prevent
This is usually the name of a PostgreSQL relation but it can also represent
Value Object to hold a schema qualified name.
def ==(o)
def ==(o) o.class == self.class && o.parts == parts end
def hash
def hash parts.hash end
def initialize(schema, identifier)
Experimental RBS support (using type sampling data from the type_fusion
project).
def initialize: (nil schema, String? identifier) -> void
This signature was generated using 4 samples from 1 application.
def initialize(schema, identifier) @schema, @identifier = Utils.unquote_identifier(schema), Utils.unquote_identifier(identifier) end
def parts
def parts @parts ||= [@schema, @identifier].compact end
def quoted
def quoted if schema PG::Connection.quote_ident(schema) << SEPARATOR << PG::Connection.quote_ident(identifier) else PG::Connection.quote_ident(identifier) end end
def to_s
def to_s parts.join SEPARATOR end