ed5115dcdb3fd8e7233f84466730fc8c5e85c729 max Thu Apr 3 05:23:19 2014 -0700 Libifying yesterday's commit and applying another patch to hgVai to makeit work in the browserbox, refs #11957 and #12717 diff --git src/hg/inc/jksql.h src/hg/inc/jksql.h index 99731cb..11190b6 100644 --- src/hg/inc/jksql.h +++ src/hg/inc/jksql.h @@ -86,30 +86,34 @@ struct slName *sqlListOfDatabases(void); /* Get list of all databases that are online. */ void sqlDisconnect(struct sqlConnection **pSc); /* Close down connection. */ char* sqlGetDatabase(struct sqlConnection *sc); /* Get the database associated with an connection. Warning: return may be NULL! */ char* sqlGetHost(struct sqlConnection *sc); /* Get the host associated with an connection. */ struct slName *sqlGetAllDatabase(struct sqlConnection *sc); /* Get a list of all database on the server */ +struct slName *sqlListTablesLike(struct sqlConnection *conn, char *likeExpr); +/* Return list of tables in database associated with conn. Optionally filter list with + * given LIKE expression that can be NULL or string e.g. "LIKE 'snp%'". */ + struct slName *sqlListTables(struct sqlConnection *conn); /* Return list of tables in database associated with conn. */ struct slName *sqlListFields(struct sqlConnection *conn, char *table); /* Return list of fields in table. */ struct sqlResult *sqlDescribe(struct sqlConnection *conn, char *table); /* Run the sql DESCRIBE command or get a cached table description and return the sql result */ void sqlAddDatabaseFields(char *database, struct hash *hash); /* Add fields from the one database to hash. */ struct hash *sqlAllFields(void); /* Get hash of all fields in database.table.field format. */