Class DBI::DBD::Pg::Database
In: lib/dbd_pg/Pg.rb
Parent: DBI::BaseDatabase

Methods

Constants

POSTGRESQL_to_XOPEN = { "boolean" => [SQL_CHAR, 1, nil], "character" => [SQL_CHAR, 1, nil], "char" => [SQL_CHAR, 1, nil], "real" => [SQL_REAL, 4, 6], "double precision" => [SQL_DOUBLE, 8, 15], "smallint" => [SQL_SMALLINT, 2], "integer" => [SQL_INTEGER, 4], "bigint" => [SQL_BIGINT, 8], "numeric" => [SQL_NUMERIC, nil, nil], "time with time zone" => [SQL_TIME, nil, nil], "timestamp with time zone" => [SQL_TIMESTAMP, nil, nil], "bit varying" => [SQL_BINARY, nil, nil], #huh?? "character varying" => [SQL_VARCHAR, nil, nil], "bit" => [SQL_TINYINT, nil, nil], "text" => [SQL_VARCHAR, nil, nil], nil => [SQL_OTHER, nil, nil]   by Eli Green

Public Class methods

Public Instance methods

Driver-specific functions ————————————————

encodes a string as bytea value.

for encoding rules see:

  http://www.postgresql.org/idocs/index.php?datatype-binary.html

by Eli Green (cleaned up by Michael Neumann)

parse a PostgreSQL-Array output and convert into ruby array

DBD Protocol ————————————————

[Validate]