# Table of Contents - pg-0.21.0 Documentation

## Pages

- Contributors
- History
  - v0.21.0 [2017-06-12] Michael Granger <ged@FaerieMUD.org>
  - v0.20.0 [2017-03-10] Michael Granger <ged@FaerieMUD.org>
  - v0.19.0 [2016-09-21] Michael Granger <ged@FaerieMUD.org>
  - v0.18.4 [2015-11-13] Michael Granger <ged@FaerieMUD.org>
  - v0.18.3 [2015-09-03] Michael Granger <ged@FaerieMUD.org>
  - v0.18.2 [2015-05-14] Michael Granger <ged@FaerieMUD.org>
  - v0.18.1 [2015-01-05] Michael Granger <ged@FaerieMUD.org>
  - v0.18.0 [2015-01-01] Michael Granger <ged@FaerieMUD.org>
  - v0.17.1 [2013-12-18] Michael Granger <ged@FaerieMUD.org>
  - v0.17.0 [2013-09-15] Michael Granger <ged@FaerieMUD.org>
  - v0.16.0 [2013-07-22] Michael Granger <ged@FaerieMUD.org>
  - v0.15.1 [2013-04-08] Michael Granger <ged@FaerieMUD.org>
  - v0.15.0 [2013-03-03] Michael Granger <ged@FaerieMUD.org>
  - v0.14.1 [2012-09-02] Michael Granger <ged@FaerieMUD.org>
  - v0.14.0 [2012-06-17] Michael Granger <ged@FaerieMUD.org>
  - v0.13.2 [2012-02-22] Michael Granger <ged@FaerieMUD.org>
  - v0.13.1 [2012-02-12] Michael Granger <ged@FaerieMUD.org>
  - v0.13.0 [2012-02-09] Michael Granger <ged@FaerieMUD.org>
  - v0.12.2 [2012-01-03] Michael Granger <ged@FaerieMUD.org>
  - v0.12.1 [2011-12-14] Michael Granger <ged@FaerieMUD.org>
  - v0.12.0 [2011-12-07] Michael Granger <ged@FaerieMUD.org>
  - v0.11.0 [2011-02-09] Michael Granger <ged@FaerieMUD.org>
  - v0.10.1 [2011-01-19] Michael Granger <ged@FaerieMUD.org>
  - v0.10.0 [2010-12-01] Michael Granger <ged@FaerieMUD.org>
  - v0.9.0 [2010-02-28] Michael Granger <ged@FaerieMUD.org>
  - v0.8.0 [2009-03-28] Jeff Davis <davis.jeffrey@gmail.com>
- LICENSE
- Manifest
- POSTGRES
- README-OS_X
  - Compiling on MacOS X
  - Segfaults and SSL Support
  - Dealing with Installation Problems
  - pg_config
  - ARCHFLAGS and Universal Binaries
- README-Windows
  - Compiling 'pg' on MS Windows
  - Building binary 'pg' gems for MS Windows
  - Reporting Problems
- README.ja
  - pg
  - Description
- README
  - pg
  - Description
  - Build Status
  - Requirements
  - How To Install
  - Type Casts
  - Encoders / Decoders (ext/pg_*coder.c, lib/pg/*coder.rb)
  - PG::TypeMap and derivations (ext/pg_type_map*.c, lib/pg/type_map*.rb)
  - Contributing
  - Copying
  - Acknowledgments
- Makefile
- errorcodes.def
- errorcodes
- pg.sln
- pg.vcproj
- pg_19.vcproj

## Classes and Modules

- File
- Object
- PG
- PG::BasicTypeMapBasedOnResult
- PG::BasicTypeMapForQueries
- PG::BasicTypeMapForResults
- PG::BasicTypeMapForResults::WarningTypeMap
- PG::BasicTypeRegistry
- PG::BasicTypeRegistry::CoderMap
- PG::BinaryDecoder
- PG::BinaryDecoder::Boolean
- PG::BinaryDecoder::Bytea
- PG::BinaryDecoder::Float
- PG::BinaryDecoder::Integer
- PG::BinaryDecoder::String
- PG::BinaryDecoder::ToBase64
- PG::BinaryEncoder
- PG::BinaryEncoder::Boolean
- PG::BinaryEncoder::Bytea
- PG::BinaryEncoder::FromBase64
- PG::BinaryEncoder::Int2
- PG::BinaryEncoder::Int4
- PG::BinaryEncoder::Int8
- PG::BinaryEncoder::String
- PG::Coder
- PG::Coder::BinaryFormatting
- PG::CompositeCoder
- PG::CompositeDecoder
- PG::CompositeEncoder
- PG::Connection
- PG::ConnectionBad
- PG::Constants
- PG::CopyCoder
- PG::CopyDecoder
- PG::CopyEncoder
- PG::Error
- PG::InvalidChangeOfResultFields
- PG::InvalidResultStatus
- PG::NoResultError
- PG::NotAllCopyDataRetrieved
- PG::PGError
- PG::PGresult
- PG::Result
- PG::ServerError
- PG::SimpleCoder
- PG::SimpleDecoder
- PG::SimpleEncoder
- PG::TextDecoder
- PG::TextDecoder::Array
- PG::TextDecoder::Boolean
- PG::TextDecoder::Bytea
- PG::TextDecoder::CopyRow
- PG::TextDecoder::Date
- PG::TextDecoder::Float
- PG::TextDecoder::FromBase64
- PG::TextDecoder::Identifier
- PG::TextDecoder::Integer
- PG::TextDecoder::JSON
- PG::TextDecoder::String
- PG::TextDecoder::TimestampWithTimeZone
- PG::TextDecoder::TimestampWithoutTimeZone
- PG::TextEncoder
- PG::TextEncoder::Array
- PG::TextEncoder::Boolean
- PG::TextEncoder::Bytea
- PG::TextEncoder::CopyRow
- PG::TextEncoder::Date
- PG::TextEncoder::Float
- PG::TextEncoder::Identifier
- PG::TextEncoder::Integer
- PG::TextEncoder::JSON
- PG::TextEncoder::QuotedLiteral
- PG::TextEncoder::String
- PG::TextEncoder::TimestampWithTimeZone
- PG::TextEncoder::TimestampWithoutTimeZone
- PG::TextEncoder::ToBase64
- PG::TypeMap
- PG::TypeMap::DefaultTypeMappable
- PG::TypeMapAllStrings
- PG::TypeMapByClass
- PG::TypeMapByColumn
- PG::TypeMapByMriType
- PG::TypeMapByOid
- PG::TypeMapInRuby
- PG::UnableToSend
- PGconn
- RbConfig
- RubyInstaller

## Methods

- ::alias_type — PG::BasicTypeRegistry
- ::conndefaults — PG::Connection
- ::conndefaults — PG::Connection
- ::conndefaults_hash — PG::Connection
- ::conndefaults_hash — PG::Connection
- ::connect — PG
- ::connect_start — PG::Connection
- ::connect_start — PG::Connection
- ::encrypt_password — PG::Connection
- ::encrypt_password — PG::Connection
- ::escape_bytea — PG::Connection
- ::escape_bytea — PG::Connection
- ::escape_string — PG::Connection
- ::escape_string — PG::Connection
- ::init_openssl — PG
- ::init_ssl — PG
- ::isthreadsafe — PG
- ::library_version — PG
- ::new — PG::BasicTypeMapForResults
- ::new — PG::TypeMapByColumn
- ::new — PG::BasicTypeMapForQueries
- ::new — PG::BasicTypeMapBasedOnResult
- ::new — PG::Coder
- ::new — PG::Coder::BinaryFormatting
- ::new — PG::Connection
- ::new — PG::Connection
- ::new — PG::BasicTypeMapForResults::WarningTypeMap
- ::new — PG::BasicTypeRegistry::CoderMap
- ::parse_connect_args — PG::Connection
- ::parse_connect_args — PG::Connection
- ::ping — PG::Connection
- ::ping — PG::Connection
- ::quote_connstr — PG::Connection
- ::quote_connstr — PG::Connection
- ::quote_ident — PG::Connection
- ::quote_ident — PG::Connection
- ::register_type — PG::BasicTypeRegistry
- ::unescape_bytea — PG::Connection
- ::unescape_bytea — PG::Connection
- ::version_string — PG
- #== — PG::Coder
- #[] — PG::TypeMapByMriType
- #[] — PG::Result
- #[] — PG::TypeMapByClass
- #[] — PG::Result
- #[]= — PG::TypeMapByClass
- #[]= — PG::TypeMapByMriType
- #add_coder — PG::TypeMapByOid
- #array_encoders_by_klass — PG::BasicTypeMapForQueries
- #async_exec — PG::Connection
- #async_query — PG::Connection
- #autoclear? — PG::Result
- #backend_pid — PG::Connection
- #block — PG::Connection
- #build_coder_maps — PG::BasicTypeRegistry
- #build_column_map — PG::TypeMapByOid
- #camelize — Object
- #cancel — PG::Connection
- #check — PG::Result
- #check_format_and_direction — PG::BasicTypeRegistry
- #check_result — PG::Result
- #clear — PG::Result
- #cleared? — PG::Result
- #client_encoding= — PG::Connection
- #close — PG::Connection
- #cmd_status — PG::Result
- #cmd_tuples — PG::Result
- #cmdtuples — PG::Result
- #coder_by_name — PG::BasicTypeRegistry::CoderMap
- #coder_by_name — PG::BasicTypeMapForQueries
- #coder_by_oid — PG::BasicTypeRegistry::CoderMap
- #coders — PG::TypeMapByColumn
- #coders — PG::TypeMapByClass
- #coders — PG::TypeMapByMriType
- #coders — PG::TypeMapByOid
- #column_values — PG::Result
- #conndefaults — PG::Connection
- #conndefaults_hash — PG::Connection
- #connect_poll — PG::Connection
- #connection_needs_password — PG::Connection
- #connection_used_password — PG::Connection
- #conninfo — PG::Connection
- #conninfo_hash — PG::Connection
- #consume_input — PG::Connection
- #copy_data — PG::Connection
- #db — PG::Connection
- #decode — PG::TextDecoder::Date
- #decode — PG::Coder
- #decode — PG::TextDecoder::JSON
- #decode — PG::TextDecoder::TimestampWithTimeZone
- #decode — PG::TextDecoder::TimestampWithoutTimeZone
- #decoder_for_get_copy_data — PG::Connection
- #decoder_for_get_copy_data= — PG::Connection
- #default_type_map — PG::TypeMap::DefaultTypeMappable
- #default_type_map= — PG::TypeMap::DefaultTypeMappable
- #delimiter — PG::CopyCoder
- #delimiter — PG::CompositeCoder
- #delimiter= — PG::CompositeCoder
- #delimiter= — PG::CopyCoder
- #describe_portal — PG::Connection
- #describe_prepared — PG::Connection
- #dup — PG::Coder
- #each — PG::Result
- #each_row — PG::Result
- #elements_type= — PG::CompositeCoder
- #encode — PG::TextEncoder::TimestampWithoutTimeZone
- #encode — PG::Coder
- #encode — PG::TextEncoder::JSON
- #encode — PG::TextEncoder::TimestampWithTimeZone
- #encode — PG::TextEncoder::Date
- #encoder_for_put_copy_data — PG::Connection
- #encoder_for_put_copy_data= — PG::Connection
- #error_field — PG::Result
- #error_message — PG::Connection
- #error_message — PG::Result
- #escape — PG::Connection
- #escape_bytea — PG::Connection
- #escape_identifier — PG::Connection
- #escape_literal — PG::Connection
- #escape_string — PG::Connection
- #exec — PG::Connection
- #exec_params — PG::Connection
- #exec_prepared — PG::Connection
- #external_encoding — PG::Connection
- #fformat — PG::Result
- #field_values — PG::Result
- #fields — PG::Result
- #finish — PG::Connection
- #finished? — PG::Connection
- #fit_to_copy_get — PG::TypeMapInRuby
- #fit_to_query — PG::TypeMapInRuby
- #fit_to_result — PG::TypeMapInRuby
- #flush — PG::Connection
- #fmod — PG::Result
- #fname — PG::Result
- #fnumber — PG::Result
- #format — PG::Coder
- #format= — PG::Coder
- #fsize — PG::Result
- #ftable — PG::Result
- #ftablecol — PG::Result
- #ftype — PG::Result
- #get_array_type — PG::BasicTypeMapForQueries
- #get_client_encoding — PG::Connection
- #get_copy_data — PG::Connection
- #get_last_result — PG::Connection
- #get_result — PG::Connection
- #getisnull — PG::Result
- #getlength — PG::Result
- #getvalue — PG::Result
- #host — PG::Connection
- #inspect — PG::Coder
- #inspect — PG::Result
- #inspect — PG::CompositeCoder
- #inspect — PG::TypeMapByColumn
- #inspect — PG::Result
- #internal_encoding — PG::Connection
- #internal_encoding= — PG::Connection
- #is_busy — PG::Connection
- #isnonblocking — PG::Connection
- #lo_close — PG::Connection
- #lo_creat — PG::Connection
- #lo_create — PG::Connection
- #lo_export — PG::Connection
- #lo_import — PG::Connection
- #lo_lseek — PG::Connection
- #lo_open — PG::Connection
- #lo_read — PG::Connection
- #lo_seek — PG::Connection
- #lo_tell — PG::Connection
- #lo_truncate — PG::Connection
- #lo_unlink — PG::Connection
- #lo_write — PG::Connection
- #loclose — PG::Connection
- #locreat — PG::Connection
- #locreate — PG::Connection
- #loexport — PG::Connection
- #loimport — PG::Connection
- #lolseek — PG::Connection
- #loopen — PG::Connection
- #loread — PG::Connection
- #loseek — PG::Connection
- #lotell — PG::Connection
- #lotruncate — PG::Connection
- #lounlink — PG::Connection
- #lowrite — PG::Connection
- #make_empty_pgresult — PG::Connection
- #map_types! — PG::Result
- #marshal_dump — PG::Coder
- #marshal_load — PG::Coder
- #max_rows_for_online_lookup — PG::TypeMapByOid
- #max_rows_for_online_lookup= — PG::TypeMapByOid
- #needs_quotation= — PG::CompositeCoder
- #needs_quotation? — PG::CompositeCoder
- #nfields — PG::Result
- #nonblocking? — PG::Connection
- #notifies — PG::Connection
- #notifies_wait — PG::Connection
- #nparams — PG::Result
- #ntuples — PG::Result
- #null_string — PG::CopyCoder
- #null_string= — PG::CopyCoder
- #num_fields — PG::Result
- #num_tuples — PG::Result
- #oid — PG::Coder
- #oid= — PG::Coder
- #oid_value — PG::Result
- #oids — PG::TypeMapByColumn
- #options — PG::Connection
- #parameter_status — PG::Connection
- #paramtype — PG::Result
- #pass — PG::Connection
- #populate_encoder_list — PG::BasicTypeMapForQueries
- #port — PG::Connection
- #prepare — PG::Connection
- #protocol_version — PG::Connection
- #put_copy_data — PG::Connection
- #put_copy_end — PG::Connection
- #query — PG::Connection
- #quote_ident — PG::Connection
- #res_status — PG::Result
- #reset — PG::Connection
- #reset_poll — PG::Connection
- #reset_start — PG::Connection
- #result_error_field — PG::Result
- #result_error_message — PG::Result
- #result_status — PG::Result
- #rm_coder — PG::TypeMapByOid
- #send_describe_portal — PG::Connection
- #send_describe_prepared — PG::Connection
- #send_prepare — PG::Connection
- #send_query — PG::Connection
- #send_query_prepared — PG::Connection
- #server_version — PG::Connection
- #set_client_encoding — PG::Connection
- #set_default_encoding — PG::Connection
- #set_error_verbosity — PG::Connection
- #set_notice_processor — PG::Connection
- #set_notice_receiver — PG::Connection
- #set_single_row_mode — PG::Connection
- #setnonblocking — PG::Connection
- #socket — PG::Connection
- #socket_io — PG::Connection
- #ssl_attribute — PG::Connection
- #ssl_attribute_names — PG::Connection
- #ssl_attributes — PG::Connection
- #ssl_in_use? — PG::Connection
- #status — PG::Connection
- #stream_each — PG::Result
- #stream_each_row — PG::Result
- #supports_ranges? — PG::BasicTypeRegistry
- #to_h — PG::CompositeCoder
- #to_h — PG::CopyCoder
- #to_h — PG::Coder
- #trace — PG::Connection
- #transaction — PG::Connection
- #transaction_status — PG::Connection
- #tty — PG::Connection
- #type_map — PG::Result
- #type_map — PG::CopyCoder
- #type_map — PG::Result
- #type_map= — PG::CopyCoder
- #type_map= — PG::Result
- #type_map_for_queries — PG::Connection
- #type_map_for_queries= — PG::Connection
- #type_map_for_results — PG::Connection
- #type_map_for_results= — PG::Connection
- #typecast_copy_get — PG::TypeMapInRuby
- #typecast_query_param — PG::TypeMapInRuby
- #typecast_result_value — PG::TypeMapInRuby
- #typecast_result_value — PG::BasicTypeMapForResults::WarningTypeMap
- #unescape_bytea — PG::Connection
- #untrace — PG::Connection
- #user — PG::Connection
- #values — PG::Result
- #wait_for_notify — PG::Connection
- #with_default_type_map — PG::TypeMap::DefaultTypeMappable