src/hg/lib/suggest.c 1.2
1.2 2010/02/06 03:16:41 larrym
forgot the rcsid
Index: src/hg/lib/suggest.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/lib/suggest.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -b -B -U 1000000 -r1.1 -r1.2
--- src/hg/lib/suggest.c 6 Feb 2010 03:15:04 -0000 1.1
+++ src/hg/lib/suggest.c 6 Feb 2010 03:16:41 -0000 1.2
@@ -1,18 +1,20 @@
/* code to support suggesting genes given a prefix typed by the user. */
#include "suggest.h"
+static char const rcsid[] = "$Id: ";
+
boolean connSupportsGeneSuggest(struct sqlConnection *conn)
// return true if this connection has tables to support gene autocompletion
{
return sqlTableExists(conn, "knownCanonical") || sqlTableExists(conn, "refGene");
}
boolean assemblySupportsGeneSuggest(char *database)
// return true if this assembly has tables to support gene autocompletion
{
struct sqlConnection *conn = hAllocConn(database);
boolean retval = connSupportsGeneSuggest(conn);
hFreeConn(&conn);
return retval;
}