/*
 * call-seq:
 *    conn.db()
 *
 * Returns the connected database name.
 */
static VALUE
pgconn_db(obj)
  VALUE obj;
{
  char *db = PQdb(get_pgconn(obj));
  if (!db) return Qnil;
  return rb_tainted_str_new2(db);
}