class PG::Connection

def self.quote_connstr( value )

## Quote a single +value+ for use in a connection-parameter string.
def self.quote_connstr( value )
	return "'" + value.to_s.gsub( /[\\']/ ) {|m| '\\' + m } + "'"
end