class ActiveRecord::ConnectionAdapters::PostgreSQL::Name

Public Instance Methods

quoted() click to toggle source
# File lib/arjdbc/postgresql/name.rb, line 7
def quoted
  if schema
    "#{quote_identifier(schema)}#{SEPARATOR}#{quote_identifier(identifier)}"
  else
    quote_identifier(identifier)
  end
end

Private Instance Methods

quote_identifier(name) click to toggle source
# File lib/arjdbc/postgresql/name.rb, line 17
def quote_identifier(name)
  %("#{name.to_s.gsub("\"", "\"\"")}")
end