class PGconn

def self::quote_connstr( value )

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