class PG::TextEncoder::Identifier

This is the encoder class for PostgreSQL identifiers.

An Array value can be used for “schema.table.column” type identifiers:

 PG::TextEncoder::Identifier.new.encode(['schema', 'table', 'column'])
    => '"schema"."table"."column"'

This encoder can also be used per PG::Connection#quote_ident .