class PGconn
if pg, postgres, or postgres-pr is used.
Attempt to get uniform behavior for the PGconn object no matter
def self.unescape_bytea(obj)
If no valid bytea unescaping method can be found, create one that
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
def block(timeout=nil)
def block(timeout=nil) end
def escape_bytea(obj)
If there is no escape_bytea instance method, but there is an
def escape_bytea(obj) self.class.escape_bytea(obj) end
def escape_bytea(obj)
If we are using postgres-pr, use the encode_bytea method from
def escape_bytea(obj) self.class.encode_bytea(obj) end
def escape_bytea(obj)
If no valid bytea escaping method can be found, create one that
def escape_bytea(obj) raise Sequel::Error, "bytea escaping not supported with this postgres driver. Try using ruby-pg, ruby-postgres, or postgres-pr." end
def escape_string(str)
If there is no escape_string instead method, but there is an
def escape_string(str) Sequel::Postgres.force_standard_strings ? str.gsub("'", "''") : self.class.escape(str) end
def escape_string(obj)
def escape_string(obj) raise Sequel::Error, "string escaping not supported with this postgres driver. Try using ruby-pg, ruby-postgres, or postgres-pr." end
def status
def status CONNECTION_OK end