a2d20a840e07785d0ae88d3d27c45f5d5a28ea70 galt Tue Jun 21 17:27:13 2016 -0700 improving hgTablesTest output. Now states more info about the machine it is running on, the URL to the hgTables site that it is testing against, and the database that it is connecting to. It also allows randomizing the track and table lists, and an optional seed is reported any can be set on commandline for debugging. diff --git src/hg/inc/jksql.h src/hg/inc/jksql.h index aab0e5b..cb7242f 100644 --- src/hg/inc/jksql.h +++ src/hg/inc/jksql.h @@ -90,30 +90,33 @@ void sqlProfileAddDb(char *profileName, char *db); /* add a mapping of db to profile. If database is already associated with * this profile, it is ignored. If it is associated with a different profile, * it is an error. */ struct slName* sqlProfileGetNames(); /* Get a list of all profile names. slFreeList result when done */ struct hash *sqlHashOfDatabases(void); /* Get hash table with names of all databases that are online. */ struct slName *sqlListOfDatabases(void); /* Get list of all databases that are online. */ +char *sqlHostInfo(struct sqlConnection *sc); +/* Returns the mysql host info for the connection, must be connected. */ + 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%'". */