Changeset 13997
- Timestamp:
- Jul 2, 2007, 4:29:59 PM (19 years ago)
- Location:
- branches/backtrack
- Files:
-
- 10 edited
-
dbconfig/cam.md (modified) (1 diff)
-
dbconfig/chip.md (modified) (3 diffs)
-
ippTools/share/chiptool_completely_processed_exp.sql (modified) (1 diff)
-
ippTools/share/chiptool_find_unprocessed_imfile.pl (modified) (1 diff)
-
ippTools/share/chiptool_pendingimfile.sql (modified) (2 diffs)
-
ippTools/share/chiptool_queuerawimfile.sql (modified) (1 diff)
-
ippTools/src/chiptool.c (modified) (2 diffs)
-
ippTools/src/pxchip.c (modified) (1 diff)
-
ippTools/src/pxtables.c (modified) (2 diffs)
-
ippTools/src/regtool.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/backtrack/dbconfig/cam.md
r13994 r13997 1 # imfiles is not here... is it needed?2 3 1 camRun METADATA 4 2 cam_id S64 0 # Primary Key AUTO_INCREMENT -
branches/backtrack/dbconfig/chip.md
r13992 r13997 1 # do we need nclass? 2 # class is missing 1 # 2 # We are dependant on the assumption that there is only ever one exp_tag in a 3 # chipRun although the database does not enforce this. 4 # 3 5 4 6 chipRun METADATA … … 13 15 END 14 16 15 # uris in & out ? 16 17 chipPendingImfile METADATA 17 chipInputImfile METADATA 18 18 chip_id S64 0 # Primary Key fkey (chip_id) ref chipRun(chip_id) 19 19 exp_tag STR 64 # Primary Key fkey (exp_tag, class_id) ref rawImfile (exp_tag, class_id) 20 20 class_id STR 64 # Primary Key 21 21 END 22 23 # nclass & ndone?24 # and/or logging imfile done better?25 26 chipMask METADATA27 label STR 64 # Primary Key28 END29 30 # uris in & out ?31 # state?32 22 33 23 chipProcessedImfile METADATA … … 57 47 fault S16 0 # Key NOT NULL 58 48 END 49 50 chipMask METADATA 51 label STR 64 # Primary Key 52 END -
branches/backtrack/ippTools/share/chiptool_completely_processed_exp.sql
r13994 r13997 15 15 chipProcessedImfile.class_id 16 16 FROM chipRun 17 JOIN chip PendingImfile17 JOIN chipInputImfile 18 18 USING(chip_id) 19 19 JOIN rawExp 20 ON chip PendingImfile.exp_tag = rawExp.exp_tag20 ON chipInputImfile.exp_tag = rawExp.exp_tag 21 21 JOIN chipProcessedImfile 22 ON chip PendingImfile.chip_id = chipProcessedImfile.chip_id23 AND chip PendingImfile.exp_tag = chipProcessedImfile.exp_tag24 AND chip PendingImfile.class_id = chipProcessedImfile.class_id22 ON chipInputImfile.chip_id = chipProcessedImfile.chip_id 23 AND chipInputImfile.exp_tag = chipProcessedImfile.exp_tag 24 AND chipInputImfile.class_id = chipProcessedImfile.class_id 25 25 WHERE 26 26 chipRun.state = 'run' 27 27 AND chipProcessedImfile.fault = 0 28 28 GROUP BY 29 chip PendingImfile.chip_id,30 chip PendingImfile.exp_tag29 chipInputImfile.chip_id, 30 chipInputImfile.exp_tag 31 31 HAVING rawExp.imfiles = COUNT(chipProcessedImfile.class_id)) as Foo -
branches/backtrack/ippTools/share/chiptool_find_unprocessed_imfile.pl
r12174 r13997 1 1 SELECT DISTINCT 2 chip PendingImfile.*3 FROM chip PendingImfile2 chipInputImfile.* 3 FROM chipInputImfile 4 4 LEFT JOIN chipProcessedImfile 5 5 USING(chip_id, class_id) -
branches/backtrack/ippTools/share/chiptool_pendingimfile.sql
r13990 r13997 1 1 SELECT 2 2 chipRun.*, 3 chip PendingImfile.exp_tag,4 chip PendingImfile.class_id,3 chipInputImfile.exp_tag, 4 chipInputImfile.class_id, 5 5 rawImfile.uri, 6 6 rawExp.exp_id, … … 9 9 rawExp.filelevel 10 10 FROM chipRun 11 JOIN chip PendingImfile11 JOIN chipInputImfile 12 12 USING(chip_id) 13 13 LEFT JOIN chipProcessedImfile 14 ON chip PendingImfile.chip_id = chipProcessedImfile.chip_id15 AND chip PendingImfile.exp_tag = chipProcessedImfile.exp_tag16 AND chip PendingImfile.class_id = chipProcessedImfile.class_id14 ON chipInputImfile.chip_id = chipProcessedImfile.chip_id 15 AND chipInputImfile.exp_tag = chipProcessedImfile.exp_tag 16 AND chipInputImfile.class_id = chipProcessedImfile.class_id 17 17 JOIN rawImfile 18 ON chip PendingImfile.exp_tag = rawImfile.exp_tag19 AND chip PendingImfile.class_id = rawImfile.class_id18 ON chipInputImfile.exp_tag = rawImfile.exp_tag 19 AND chipInputImfile.class_id = rawImfile.class_id 20 20 JOIN rawExp 21 21 ON rawImfile.exp_tag = rawExp.exp_tag -
branches/backtrack/ippTools/share/chiptool_queuerawimfile.sql
r13990 r13997 1 INSERT INTO chip PendingImfile1 INSERT INTO chipInputImfile 2 2 SELECT 3 3 LAST_INSERT_ID(), -
branches/backtrack/ippTools/src/chiptool.c
r13996 r13997 282 282 283 283 if (config->where) { 284 psString whereClause = psDBGenerateWhereConditionSQL(config->where, "chip PendingImfile");284 psString whereClause = psDBGenerateWhereConditionSQL(config->where, "chipInputImfile"); 285 285 psStringAppend(&query, " AND %s", whereClause); 286 286 psFree(whereClause); … … 329 329 330 330 // negative simple so the default is true 331 if (!ippdbPrintMetadatas(stdout, output, "chip PendingImfile", !simple)) {331 if (!ippdbPrintMetadatas(stdout, output, "chipInputImfile", !simple)) { 332 332 psError(PS_ERR_UNKNOWN, false, "failed to print array"); 333 333 psFree(output); -
branches/backtrack/ippTools/src/pxchip.c
r13996 r13997 96 96 #endif 97 97 98 // populate the chip PendingImfile table from rawImfile based on exp_tag,98 // populate the chipInputImfile table from rawImfile based on exp_tag, 99 99 // where the coresponding newExp.state entry is set to stop 100 100 psString query = pxDataGetCached("chiptool_queuerawimfile.sql"); -
branches/backtrack/ippTools/src/pxtables.c
r13994 r13997 61 61 CREATE_TABLE(guidePendingExpCreateTable); 62 62 CREATE_TABLE(chipRunCreateTable); 63 CREATE_TABLE(chip PendingImfileCreateTable);63 CREATE_TABLE(chipInputImfileCreateTable); 64 64 CREATE_TABLE(chipProcessedImfileCreateTable); 65 65 CREATE_TABLE(chipMaskCreateTable); … … 142 142 DROP_TABLE(guidePendingExpDropTable); 143 143 DROP_TABLE(chipRunDropTable); 144 DROP_TABLE(chip PendingImfileDropTable);144 DROP_TABLE(chipInputImfileDropTable); 145 145 DROP_TABLE(chipProcessedImfileDropTable); 146 146 DROP_TABLE(chipMaskDropTable); -
branches/backtrack/ippTools/src/regtool.c
r13996 r13997 44 44 // static guidePendingExpRow *newToP1PendingExp(newExpRow *newExp); 45 45 //static chipPendingExpRow *newTochipPendingExp(pxConfig *config, newExpRow *newExp); 46 //static chip PendingImfileRow *rawImfileTochipPendingImfile(pxConfig *config, psS64 chip_id, rawImfileRow *rawImfile);46 //static chipInputImfileRow *rawImfileTochipInputImfile(pxConfig *config, psS64 chip_id, rawImfileRow *rawImfile); 47 47 48 48 static rawExpRow *newToRawExp(pxConfig *config, newExpRow *exp); … … 822 822 823 823 824 static chip PendingImfileRow *rawImfileTochipPendingImfile(pxConfig *config, psS64 chip_id, rawImfileRow *rawImfile)825 { 826 return chip PendingImfileRowAlloc(824 static chipInputImfileRow *rawImfileTochipInputImfile(pxConfig *config, psS64 chip_id, rawImfileRow *rawImfile) 825 { 826 return chipInputImfileRowAlloc( 827 827 chip_id, 828 828 rawImfile->class_id,
Note:
See TracChangeset
for help on using the changeset viewer.
