class PGconn

def self::quote_connstr( value )

## @return [String]
## @param [String] value the option value to be quoted.
## Quote the given +value+ for use in a connection-parameter string.
def self::quote_connstr( value )
	return "'" + value.to_s.gsub( /[\\']/ ) {|m| '\\' + m } + "'"
end