class ActiveRecord::ConnectionAdapters::PostgreSQL::Name
: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)
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