Class: PG::TextEncoder::Identifier

Inherits:
SimpleEncoder show all
Defined in:
ext/pg_text_encoder.c

Overview

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 .

Instance Attribute Summary

Attributes inherited from Coder

#name

Method Summary

Methods inherited from Coder

#==, #decode, #dup, #encode, #format, #format=, #initialize, #inspect, #marshal_dump, #marshal_load, #oid, #oid=, #to_h

Constructor Details

This class inherits a constructor from PG::Coder