Attempt to get uniform behavior for the PGconn object no matter if pg, postgres, or postgres-pr is used.
Constants
CONNECTION_OK | = | -1 |
Public Class methods
unescape_bytea
(obj)
If no valid bytea unescaping method can be found, create one that raises an error
[show source]
# File lib/sequel/adapters/postgres.rb, line 57 def self.unescape_bytea(obj) raise Sequel::Error, "bytea unescaping not supported with this postgres driver. Try using ruby-pg, ruby-postgres, or postgres-pr." end
Public Instance methods
block
(timeout=nil)
[show source]
# File lib/sequel/adapters/postgres.rb, line 66 def block(timeout=nil) end
escape_bytea
(obj)
If there is no #escape_bytea instance method, but there is an #escape_bytea class method, use that instead.
[show source]
# File lib/sequel/adapters/postgres.rb, line 35 def escape_bytea(obj) self.class.escape_bytea(obj) end
escape_string
(str)
If there is no #escape_string instance method, but there is an escape class method, use that instead.
[show source]
# File lib/sequel/adapters/postgres.rb, line 17 def escape_string(str) Sequel::Postgres.force_standard_strings ? str.gsub("'", "''") : self.class.escape(str) end
status
()
[show source]
# File lib/sequel/adapters/postgres.rb, line 73 def status CONNECTION_OK end