3a88c02326aadbb1df3436cd519f7b8a4df6ae5b chmalee Thu Jun 6 15:32:15 2024 -0700 Work in progress using the mysql table for hubSpace on client side diff --git src/hg/inc/hubSpace.h src/hg/inc/hubSpace.h index ee5ec44..879bc01 100644 --- src/hg/inc/hubSpace.h +++ src/hg/inc/hubSpace.h @@ -1,40 +1,41 @@ /* hubSpace.h was originally generated by the autoSql program, which also * generated hubSpace.c and hubSpace.sql. This header links the database and * the RAM representation of objects. */ #ifndef HUBSPACE_H #define HUBSPACE_H #include "jksql.h" -#define HUBSPACE_NUM_COLS 9 +#define HUBSPACE_NUM_COLS 10 extern char *hubSpaceCommaSepFieldNames; struct hubSpace /* file storage table for users to store uploaded tracks */ { struct hubSpace *next; /* Next in singly linked list. */ char *userName; /* userName of user uploading file */ char *fileName; /* name of uploaded files. The actual path to this file is different */ long long fileSize; /* size of the uploaded file */ char *fileType; /* track type of file */ char *creationTime; /* first upload time */ char *lastModified; /* last change time */ char *hubNameList; /* comma separated list of hubs this file is a part of */ char *db; /* genome assembly associated with this file */ char *location; /* file system path or URL to file */ + char *md5sum; /* md5sum of file */ }; void hubSpaceStaticLoad(char **row, struct hubSpace *ret); /* Load a row from hubSpace table into ret. The contents of ret will * be replaced at the next call to this function. */ struct hubSpace *hubSpaceLoadByQuery(struct sqlConnection *conn, char *query); /* Load all hubSpace from table that satisfy the query given. * Where query is of the form 'select * from example where something=something' * or 'select example.* from example, anotherTable where example.something = * anotherTable.something'. * Dispose of this with hubSpaceFreeList(). */ void hubSpaceSaveToDb(struct sqlConnection *conn, struct hubSpace *el, char *tableName, int updateSize); /* Save hubSpace as a row to the table specified by tableName.