Changeset 8122
- Timestamp:
- Aug 3, 2006, 6:28:25 PM (20 years ago)
- Location:
- branches/jhoblitt/ippdb
- Files:
-
- 3 edited
-
configure.ac (modified) (1 diff)
-
src/ippdb.c (modified) (31 diffs)
-
src/ippdb.h (modified) (31 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/jhoblitt/ippdb/configure.ac
r8103 r8122 1 1 AC_PREREQ(2.59) 2 2 3 AC_INIT([ippdb], [0.0.1 1], [pan-starrs.ifa.hawaii.edu])3 AC_INIT([ippdb], [0.0.12], [pan-starrs.ifa.hawaii.edu]) 4 4 AC_CONFIG_SRCDIR([ippdb.pc.in]) 5 5 -
branches/jhoblitt/ippdb/src/ippdb.c
r8103 r8122 206 206 } 207 207 208 long long weatherDelete(psDB *dbh, const psMetadata *where, unsigned long long limit) 209 { 210 long long deleted = 0; 211 212 long long count = psDBDeleteRows(dbh, WEATHER_TABLE_NAME, where, limit); 213 if (count < 0) { 214 psError(PS_ERR_UNKNOWN, true, "failed to delete row from weather"); 215 return count; 216 217 deleted += count; 218 } 219 220 return deleted; 221 } 208 222 bool weatherPop(psDB *dbh, psF32 *temp01, psF32 *humi01, psF32 *temp02, psF32 *humi02, psF32 *temp03, psF32 *humi03, psF32 *pressure) 209 223 { … … 691 705 } 692 706 707 long long skyp_transparencyDelete(psDB *dbh, const psMetadata *where, unsigned long long limit) 708 { 709 long long deleted = 0; 710 711 long long count = psDBDeleteRows(dbh, SKYP_TRANSPARENCY_TABLE_NAME, where, limit); 712 if (count < 0) { 713 psError(PS_ERR_UNKNOWN, true, "failed to delete row from skyp_transparency"); 714 return count; 715 716 deleted += count; 717 } 718 719 return deleted; 720 } 693 721 bool skyp_transparencyPop(psDB *dbh, char **filter, psF64 *trans, psS32 *nstars, psF64 *ra, psF64 *decl, psF32 *exptime, psF64 *sky_bright) 694 722 { … … 1198 1226 } 1199 1227 1228 long long skyp_absorptionDelete(psDB *dbh, const psMetadata *where, unsigned long long limit) 1229 { 1230 long long deleted = 0; 1231 1232 long long count = psDBDeleteRows(dbh, SKYP_ABSORPTION_TABLE_NAME, where, limit); 1233 if (count < 0) { 1234 psError(PS_ERR_UNKNOWN, true, "failed to delete row from skyp_absorption"); 1235 return count; 1236 1237 deleted += count; 1238 } 1239 1240 return deleted; 1241 } 1200 1242 bool skyp_absorptionPop(psDB *dbh, char **disperser_id, psF32 *atmcomp1, psF32 *atmcomp2, psF32 *atmcomp3, psS32 *nstars, psF64 *ra, psF64 *decl, psF32 *exptime, psF64 *sky_bright) 1201 1243 { … … 1708 1750 } 1709 1751 1752 long long skyp_emissionDelete(psDB *dbh, const psMetadata *where, unsigned long long limit) 1753 { 1754 long long deleted = 0; 1755 1756 long long count = psDBDeleteRows(dbh, SKYP_EMISSION_TABLE_NAME, where, limit); 1757 if (count < 0) { 1758 psError(PS_ERR_UNKNOWN, true, "failed to delete row from skyp_emission"); 1759 return count; 1760 1761 deleted += count; 1762 } 1763 1764 return deleted; 1765 } 1710 1766 bool skyp_emissionPop(psDB *dbh, char **disperser_id, psF32 *atmcomp1, psF32 *atmcomp2, psF32 *atmcomp3, psF32 *continuum, psF32 *exptime) 1711 1767 { … … 2175 2231 } 2176 2232 2233 long long dimmDelete(psDB *dbh, const psMetadata *where, unsigned long long limit) 2234 { 2235 long long deleted = 0; 2236 2237 long long count = psDBDeleteRows(dbh, DIMM_TABLE_NAME, where, limit); 2238 if (count < 0) { 2239 psError(PS_ERR_UNKNOWN, true, "failed to delete row from dimm"); 2240 return count; 2241 2242 deleted += count; 2243 } 2244 2245 return deleted; 2246 } 2177 2247 bool dimmPop(psDB *dbh, psF32 *sigmax, psF32 *sigmay, psF32 *fwhm, psF64 *ra, psF64 *decl, psF32 *expttime, char **telescope_id) 2178 2248 { … … 2648 2718 } 2649 2719 2720 long long skyp_irDelete(psDB *dbh, const psMetadata *where, unsigned long long limit) 2721 { 2722 long long deleted = 0; 2723 2724 long long count = psDBDeleteRows(dbh, SKYP_IR_TABLE_NAME, where, limit); 2725 if (count < 0) { 2726 psError(PS_ERR_UNKNOWN, true, "failed to delete row from skyp_ir"); 2727 return count; 2728 2729 deleted += count; 2730 } 2731 2732 return deleted; 2733 } 2650 2734 bool skyp_irPop(psDB *dbh, psF64 *sky_bright, psF64 *sky_var, psF64 *ra, psF64 *decl, psF32 *fov_x, psF32 *fov_y) 2651 2735 { … … 3081 3165 } 3082 3166 3167 long long domeDelete(psDB *dbh, const psMetadata *where, unsigned long long limit) 3168 { 3169 long long deleted = 0; 3170 3171 long long count = psDBDeleteRows(dbh, DOME_TABLE_NAME, where, limit); 3172 if (count < 0) { 3173 psError(PS_ERR_UNKNOWN, true, "failed to delete row from dome"); 3174 return count; 3175 3176 deleted += count; 3177 } 3178 3179 return deleted; 3180 } 3083 3181 bool domePop(psDB *dbh, psF32 *az, bool *open, bool *light, bool *track) 3084 3182 { … … 3490 3588 } 3491 3589 3590 long long telescopeDelete(psDB *dbh, const psMetadata *where, unsigned long long limit) 3591 { 3592 long long deleted = 0; 3593 3594 long long count = psDBDeleteRows(dbh, TELESCOPE_TABLE_NAME, where, limit); 3595 if (count < 0) { 3596 psError(PS_ERR_UNKNOWN, true, "failed to delete row from telescope"); 3597 return count; 3598 3599 deleted += count; 3600 } 3601 3602 return deleted; 3603 } 3492 3604 bool telescopePop(psDB *dbh, char **guide, psF32 *alt, psF32 *az, psF64 *ra, psF64 *decl) 3493 3605 { … … 3921 4033 } 3922 4034 4035 long long summitExpDelete(psDB *dbh, const psMetadata *where, unsigned long long limit) 4036 { 4037 long long deleted = 0; 4038 4039 long long count = psDBDeleteRows(dbh, SUMMITEXP_TABLE_NAME, where, limit); 4040 if (count < 0) { 4041 psError(PS_ERR_UNKNOWN, true, "failed to delete row from summitExp"); 4042 return count; 4043 4044 deleted += count; 4045 } 4046 4047 return deleted; 4048 } 3923 4049 bool summitExpPop(psDB *dbh, char **exp_id, char **camera, char **telescope, char **exp_type, char **uri) 3924 4050 { … … 4351 4477 } 4352 4478 4479 long long pzPendingExpDelete(psDB *dbh, const psMetadata *where, unsigned long long limit) 4480 { 4481 long long deleted = 0; 4482 4483 long long count = psDBDeleteRows(dbh, PZPENDINGEXP_TABLE_NAME, where, limit); 4484 if (count < 0) { 4485 psError(PS_ERR_UNKNOWN, true, "failed to delete row from pzPendingExp"); 4486 return count; 4487 4488 deleted += count; 4489 } 4490 4491 return deleted; 4492 } 4353 4493 bool pzPendingExpPop(psDB *dbh, char **exp_id, char **camera, char **telescope, char **exp_type, psS32 *imfiles) 4354 4494 { … … 4793 4933 } 4794 4934 4935 long long pzPendingImfileDelete(psDB *dbh, const psMetadata *where, unsigned long long limit) 4936 { 4937 long long deleted = 0; 4938 4939 long long count = psDBDeleteRows(dbh, PZPENDINGIMFILE_TABLE_NAME, where, limit); 4940 if (count < 0) { 4941 psError(PS_ERR_UNKNOWN, true, "failed to delete row from pzPendingImfile"); 4942 return count; 4943 4944 deleted += count; 4945 } 4946 4947 return deleted; 4948 } 4795 4949 bool pzPendingImfilePop(psDB *dbh, char **exp_id, psS32 *bytes, char **md5sum, char **class, char **class_id, char **uri) 4796 4950 { … … 5241 5395 } 5242 5396 5397 long long newExpDelete(psDB *dbh, const psMetadata *where, unsigned long long limit) 5398 { 5399 long long deleted = 0; 5400 5401 long long count = psDBDeleteRows(dbh, NEWEXP_TABLE_NAME, where, limit); 5402 if (count < 0) { 5403 psError(PS_ERR_UNKNOWN, true, "failed to delete row from newExp"); 5404 return count; 5405 5406 deleted += count; 5407 } 5408 5409 return deleted; 5410 } 5243 5411 bool newExpPop(psDB *dbh, char **exp_id, char **camera, char **telescope, char **exp_type, psS32 *imfiles) 5244 5412 { … … 5660 5828 } 5661 5829 5830 long long newImfileDelete(psDB *dbh, const psMetadata *where, unsigned long long limit) 5831 { 5832 long long deleted = 0; 5833 5834 long long count = psDBDeleteRows(dbh, NEWIMFILE_TABLE_NAME, where, limit); 5835 if (count < 0) { 5836 psError(PS_ERR_UNKNOWN, true, "failed to delete row from newImfile"); 5837 return count; 5838 5839 deleted += count; 5840 } 5841 5842 return deleted; 5843 } 5662 5844 bool newImfilePop(psDB *dbh, char **exp_id, char **class, char **class_id, char **uri) 5663 5845 { … … 6139 6321 } 6140 6322 6323 long long rawDetrendExpDelete(psDB *dbh, const psMetadata *where, unsigned long long limit) 6324 { 6325 long long deleted = 0; 6326 6327 long long count = psDBDeleteRows(dbh, RAWDETRENDEXP_TABLE_NAME, where, limit); 6328 if (count < 0) { 6329 psError(PS_ERR_UNKNOWN, true, "failed to delete row from rawDetrendExp"); 6330 return count; 6331 6332 deleted += count; 6333 } 6334 6335 return deleted; 6336 } 6141 6337 bool rawDetrendExpPop(psDB *dbh, char **exp_id, char **camera, char **telescope, char **exp_type, psS32 *imfiles, char **filter, psF32 *airmass, psF64 *ra, psF64 *decl, psF32 *exp_time, psF64 *background) 6142 6338 { … … 6744 6940 } 6745 6941 6942 long long rawScienceExpDelete(psDB *dbh, const psMetadata *where, unsigned long long limit) 6943 { 6944 long long deleted = 0; 6945 6946 long long count = psDBDeleteRows(dbh, RAWSCIENCEEXP_TABLE_NAME, where, limit); 6947 if (count < 0) { 6948 psError(PS_ERR_UNKNOWN, true, "failed to delete row from rawScienceExp"); 6949 return count; 6950 6951 deleted += count; 6952 } 6953 6954 return deleted; 6955 } 6746 6956 bool rawScienceExpPop(psDB *dbh, char **exp_id, char **camera, char **telescope, char **exp_type, psS32 *imfiles, char **filter, psF32 *airmass, psF64 *ra, psF64 *decl, psF32 *exp_time, psF64 *background) 6747 6957 { … … 7271 7481 } 7272 7482 7483 long long rawImfileDelete(psDB *dbh, const psMetadata *where, unsigned long long limit) 7484 { 7485 long long deleted = 0; 7486 7487 long long count = psDBDeleteRows(dbh, RAWIMFILE_TABLE_NAME, where, limit); 7488 if (count < 0) { 7489 psError(PS_ERR_UNKNOWN, true, "failed to delete row from rawImfile"); 7490 return count; 7491 7492 deleted += count; 7493 } 7494 7495 return deleted; 7496 } 7273 7497 bool rawImfilePop(psDB *dbh, char **exp_id, char **class, char **class_id, char **uri) 7274 7498 { … … 7773 7997 } 7774 7998 7999 long long p1PendingExpDelete(psDB *dbh, const psMetadata *where, unsigned long long limit) 8000 { 8001 long long deleted = 0; 8002 8003 long long count = psDBDeleteRows(dbh, P1PENDINGEXP_TABLE_NAME, where, limit); 8004 if (count < 0) { 8005 psError(PS_ERR_UNKNOWN, true, "failed to delete row from p1PendingExp"); 8006 return count; 8007 8008 deleted += count; 8009 } 8010 8011 return deleted; 8012 } 7775 8013 bool p1PendingExpPop(psDB *dbh, char **exp_id, char **camera, char **telescope, char **exp_type, psS32 *imfiles, char **filter, psF32 *airmass, psF64 *ra, psF64 *decl, psF32 *exp_time, psF64 *background, char **recipe, psS32 *p1_version) 7776 8014 { … … 8448 8686 } 8449 8687 8688 long long p2PendingExpDelete(psDB *dbh, const psMetadata *where, unsigned long long limit) 8689 { 8690 long long deleted = 0; 8691 8692 long long count = psDBDeleteRows(dbh, P2PENDINGEXP_TABLE_NAME, where, limit); 8693 if (count < 0) { 8694 psError(PS_ERR_UNKNOWN, true, "failed to delete row from p2PendingExp"); 8695 return count; 8696 8697 deleted += count; 8698 } 8699 8700 return deleted; 8701 } 8450 8702 bool p2PendingExpPop(psDB *dbh, char **exp_id, char **camera, char **telescope, char **exp_type, psS32 *imfiles, char **filter, psF32 *airmass, psF32 *ra, psF64 *decl, psF64 *exp_time, psF64 *background, char **recipe, psS32 *p1_version, psS32 *p2_version) 8451 8703 { … … 9051 9303 } 9052 9304 9305 long long p2PendingImfileDelete(psDB *dbh, const psMetadata *where, unsigned long long limit) 9306 { 9307 long long deleted = 0; 9308 9309 long long count = psDBDeleteRows(dbh, P2PENDINGIMFILE_TABLE_NAME, where, limit); 9310 if (count < 0) { 9311 psError(PS_ERR_UNKNOWN, true, "failed to delete row from p2PendingImfile"); 9312 return count; 9313 9314 deleted += count; 9315 } 9316 9317 return deleted; 9318 } 9053 9319 bool p2PendingImfilePop(psDB *dbh, char **exp_id, char **class_id, char **uri, char **recipe, psS32 *p1_version, psS32 *p2_version) 9054 9320 { … … 9600 9866 } 9601 9867 9868 long long p2DoneExpDelete(psDB *dbh, const psMetadata *where, unsigned long long limit) 9869 { 9870 long long deleted = 0; 9871 9872 long long count = psDBDeleteRows(dbh, P2DONEEXP_TABLE_NAME, where, limit); 9873 if (count < 0) { 9874 psError(PS_ERR_UNKNOWN, true, "failed to delete row from p2DoneExp"); 9875 return count; 9876 9877 deleted += count; 9878 } 9879 9880 return deleted; 9881 } 9602 9882 bool p2DoneExpPop(psDB *dbh, char **exp_id, char **camera, char **telescope, char **exp_type, psS32 *imfiles, char **filter, psF32 *airmass, psF64 *ra, psF64 *decl, psF32 *exp_time, psF64 *background, char **recipe, psS32 *p1_version, psS32 *p2_version) 9603 9883 { … … 10203 10483 } 10204 10484 10485 long long p2DoneImfileDelete(psDB *dbh, const psMetadata *where, unsigned long long limit) 10486 { 10487 long long deleted = 0; 10488 10489 long long count = psDBDeleteRows(dbh, P2DONEIMFILE_TABLE_NAME, where, limit); 10490 if (count < 0) { 10491 psError(PS_ERR_UNKNOWN, true, "failed to delete row from p2DoneImfile"); 10492 return count; 10493 10494 deleted += count; 10495 } 10496 10497 return deleted; 10498 } 10205 10499 bool p2DoneImfilePop(psDB *dbh, char **exp_id, char **class_id, char **uri, char **recipe, psS32 *p1_version, psS32 *p2_version) 10206 10500 { … … 10740 11034 } 10741 11035 11036 long long p3PendingExpDelete(psDB *dbh, const psMetadata *where, unsigned long long limit) 11037 { 11038 long long deleted = 0; 11039 11040 long long count = psDBDeleteRows(dbh, P3PENDINGEXP_TABLE_NAME, where, limit); 11041 if (count < 0) { 11042 psError(PS_ERR_UNKNOWN, true, "failed to delete row from p3PendingExp"); 11043 return count; 11044 11045 deleted += count; 11046 } 11047 11048 return deleted; 11049 } 10742 11050 bool p3PendingExpPop(psDB *dbh, char **exp_id, char **camera, char **exp_type, psS32 *imfiles, char **filter, psF32 *airmass, psF64 *ra, psF64 *decl, psF32 *exp_time, psF64 *background, char **recipe, psS32 *p2_version, psS32 *p3_version) 10743 11051 { … … 11278 11586 } 11279 11587 11588 long long detRunDelete(psDB *dbh, const psMetadata *where, unsigned long long limit) 11589 { 11590 long long deleted = 0; 11591 11592 long long count = psDBDeleteRows(dbh, DETRUN_TABLE_NAME, where, limit); 11593 if (count < 0) { 11594 psError(PS_ERR_UNKNOWN, true, "failed to delete row from detRun"); 11595 return count; 11596 11597 deleted += count; 11598 } 11599 11600 return deleted; 11601 } 11280 11602 bool detRunPop(psDB *dbh, psS32 *iteration, char **det_type) 11281 11603 { … … 11743 12065 } 11744 12066 12067 long long detInputExpDelete(psDB *dbh, const psMetadata *where, unsigned long long limit) 12068 { 12069 long long deleted = 0; 12070 12071 long long count = psDBDeleteRows(dbh, DETINPUTEXP_TABLE_NAME, where, limit); 12072 if (count < 0) { 12073 psError(PS_ERR_UNKNOWN, true, "failed to delete row from detInputExp"); 12074 return count; 12075 12076 deleted += count; 12077 } 12078 12079 return deleted; 12080 } 11745 12081 bool detInputExpPop(psDB *dbh, psS32 *det_id, psS32 *iteration, char **exp_id, char **camera, char **telescope, char **exp_type, psS32 *imfiles, char **filter, psF32 *airmass, psF64 *ra, psF64 *decl, psF32 *exp_time, psF64 *background) 11746 12082 { … … 12317 12653 } 12318 12654 12655 long long detProcessedImfileDelete(psDB *dbh, const psMetadata *where, unsigned long long limit) 12656 { 12657 long long deleted = 0; 12658 12659 long long count = psDBDeleteRows(dbh, DETPROCESSEDIMFILE_TABLE_NAME, where, limit); 12660 if (count < 0) { 12661 psError(PS_ERR_UNKNOWN, true, "failed to delete row from detProcessedImfile"); 12662 return count; 12663 12664 deleted += count; 12665 } 12666 12667 return deleted; 12668 } 12319 12669 bool detProcessedImfilePop(psDB *dbh, psS32 *det_id, char **exp_id, char **class_id, char **uri, char **recipe) 12320 12670 { … … 12746 13096 } 12747 13097 13098 long long detStackedImfileDelete(psDB *dbh, const psMetadata *where, unsigned long long limit) 13099 { 13100 long long deleted = 0; 13101 13102 long long count = psDBDeleteRows(dbh, DETSTACKEDIMFILE_TABLE_NAME, where, limit); 13103 if (count < 0) { 13104 psError(PS_ERR_UNKNOWN, true, "failed to delete row from detStackedImfile"); 13105 return count; 13106 13107 deleted += count; 13108 } 13109 13110 return deleted; 13111 } 12748 13112 bool detStackedImfilePop(psDB *dbh, psS32 *det_id, psS32 *iteration, char **class_id, char **uri, char **recipe) 12749 13113 { … … 13175 13539 } 13176 13540 13541 long long detNormalizedImfileDelete(psDB *dbh, const psMetadata *where, unsigned long long limit) 13542 { 13543 long long deleted = 0; 13544 13545 long long count = psDBDeleteRows(dbh, DETNORMALIZEDIMFILE_TABLE_NAME, where, limit); 13546 if (count < 0) { 13547 psError(PS_ERR_UNKNOWN, true, "failed to delete row from detNormalizedImfile"); 13548 return count; 13549 13550 deleted += count; 13551 } 13552 13553 return deleted; 13554 } 13177 13555 bool detNormalizedImfilePop(psDB *dbh, psS32 *det_id, psS32 *iteration, char **class_id, char **uri, char **recipe) 13178 13556 { … … 13580 13958 } 13581 13959 13960 long long detMasterFrameDelete(psDB *dbh, const psMetadata *where, unsigned long long limit) 13961 { 13962 long long deleted = 0; 13963 13964 long long count = psDBDeleteRows(dbh, DETMASTERFRAME_TABLE_NAME, where, limit); 13965 if (count < 0) { 13966 psError(PS_ERR_UNKNOWN, true, "failed to delete row from detMasterFrame"); 13967 return count; 13968 13969 deleted += count; 13970 } 13971 13972 return deleted; 13973 } 13582 13974 bool detMasterFramePop(psDB *dbh, psS32 *det_id, psS32 *iteration, char **comment) 13583 13975 { … … 13962 14354 } 13963 14355 14356 long long detMasterImfileDelete(psDB *dbh, const psMetadata *where, unsigned long long limit) 14357 { 14358 long long deleted = 0; 14359 14360 long long count = psDBDeleteRows(dbh, DETMASTERIMFILE_TABLE_NAME, where, limit); 14361 if (count < 0) { 14362 psError(PS_ERR_UNKNOWN, true, "failed to delete row from detMasterImfile"); 14363 return count; 14364 14365 deleted += count; 14366 } 14367 14368 return deleted; 14369 } 13964 14370 bool detMasterImfilePop(psDB *dbh, psS32 *det_id, char **class_id, char **uri, char **recipe) 13965 14371 { … … 14373 14779 } 14374 14780 14781 long long detResidImfileAnalysisDelete(psDB *dbh, const psMetadata *where, unsigned long long limit) 14782 { 14783 long long deleted = 0; 14784 14785 long long count = psDBDeleteRows(dbh, DETRESIDIMFILEANALYSIS_TABLE_NAME, where, limit); 14786 if (count < 0) { 14787 psError(PS_ERR_UNKNOWN, true, "failed to delete row from detResidImfileAnalysis"); 14788 return count; 14789 14790 deleted += count; 14791 } 14792 14793 return deleted; 14794 } 14375 14795 bool detResidImfileAnalysisPop(psDB *dbh, psS32 *det_id, psS32 *iteration, char **exp_id, char **class_id, char **recipe) 14376 14796 { … … 14801 15221 } 14802 15222 15223 long long detResidExpAnalysisDelete(psDB *dbh, const psMetadata *where, unsigned long long limit) 15224 { 15225 long long deleted = 0; 15226 15227 long long count = psDBDeleteRows(dbh, DETRESIDEXPANALYSIS_TABLE_NAME, where, limit); 15228 if (count < 0) { 15229 psError(PS_ERR_UNKNOWN, true, "failed to delete row from detResidExpAnalysis"); 15230 return count; 15231 15232 deleted += count; 15233 } 15234 15235 return deleted; 15236 } 14803 15237 bool detResidExpAnalysisPop(psDB *dbh, psS32 *det_id, psS32 *iteration, char **exp_id, char **recipe, bool *accept) 14804 15238 { -
branches/jhoblitt/ippdb/src/ippdb.h
r8103 r8122 97 97 ); 98 98 99 /** Deletes up to limit rows from the database and returns the number of rows actually deleted. 100 * 101 * @return A The number of rows removed or a negative value on error 102 */ 103 104 long long weatherDelete( 105 psDB *dbh, ///< Database handle 106 const psMetadata *where, ///< Row match criteria 107 unsigned long long limit ///< Maximum number of elements to delete 108 ); 109 99 110 /** Removes the last row from the database and returns it 100 111 * … … 286 297 psF32 exptime, 287 298 psF64 sky_bright 299 ); 300 301 /** Deletes up to limit rows from the database and returns the number of rows actually deleted. 302 * 303 * @return A The number of rows removed or a negative value on error 304 */ 305 306 long long skyp_transparencyDelete( 307 psDB *dbh, ///< Database handle 308 const psMetadata *where, ///< Row match criteria 309 unsigned long long limit ///< Maximum number of elements to delete 288 310 ); 289 311 … … 485 507 ); 486 508 509 /** Deletes up to limit rows from the database and returns the number of rows actually deleted. 510 * 511 * @return A The number of rows removed or a negative value on error 512 */ 513 514 long long skyp_absorptionDelete( 515 psDB *dbh, ///< Database handle 516 const psMetadata *where, ///< Row match criteria 517 unsigned long long limit ///< Maximum number of elements to delete 518 ); 519 487 520 /** Removes the last row from the database and returns it 488 521 * … … 675 708 ); 676 709 710 /** Deletes up to limit rows from the database and returns the number of rows actually deleted. 711 * 712 * @return A The number of rows removed or a negative value on error 713 */ 714 715 long long skyp_emissionDelete( 716 psDB *dbh, ///< Database handle 717 const psMetadata *where, ///< Row match criteria 718 unsigned long long limit ///< Maximum number of elements to delete 719 ); 720 677 721 /** Removes the last row from the database and returns it 678 722 * … … 865 909 ); 866 910 911 /** Deletes up to limit rows from the database and returns the number of rows actually deleted. 912 * 913 * @return A The number of rows removed or a negative value on error 914 */ 915 916 long long dimmDelete( 917 psDB *dbh, ///< Database handle 918 const psMetadata *where, ///< Row match criteria 919 unsigned long long limit ///< Maximum number of elements to delete 920 ); 921 867 922 /** Removes the last row from the database and returns it 868 923 * … … 1053 1108 ); 1054 1109 1110 /** Deletes up to limit rows from the database and returns the number of rows actually deleted. 1111 * 1112 * @return A The number of rows removed or a negative value on error 1113 */ 1114 1115 long long skyp_irDelete( 1116 psDB *dbh, ///< Database handle 1117 const psMetadata *where, ///< Row match criteria 1118 unsigned long long limit ///< Maximum number of elements to delete 1119 ); 1120 1055 1121 /** Removes the last row from the database and returns it 1056 1122 * … … 1232 1298 bool light, 1233 1299 bool track 1300 ); 1301 1302 /** Deletes up to limit rows from the database and returns the number of rows actually deleted. 1303 * 1304 * @return A The number of rows removed or a negative value on error 1305 */ 1306 1307 long long domeDelete( 1308 psDB *dbh, ///< Database handle 1309 const psMetadata *where, ///< Row match criteria 1310 unsigned long long limit ///< Maximum number of elements to delete 1234 1311 ); 1235 1312 … … 1416 1493 ); 1417 1494 1495 /** Deletes up to limit rows from the database and returns the number of rows actually deleted. 1496 * 1497 * @return A The number of rows removed or a negative value on error 1498 */ 1499 1500 long long telescopeDelete( 1501 psDB *dbh, ///< Database handle 1502 const psMetadata *where, ///< Row match criteria 1503 unsigned long long limit ///< Maximum number of elements to delete 1504 ); 1505 1418 1506 /** Removes the last row from the database and returns it 1419 1507 * … … 1599 1687 ); 1600 1688 1689 /** Deletes up to limit rows from the database and returns the number of rows actually deleted. 1690 * 1691 * @return A The number of rows removed or a negative value on error 1692 */ 1693 1694 long long summitExpDelete( 1695 psDB *dbh, ///< Database handle 1696 const psMetadata *where, ///< Row match criteria 1697 unsigned long long limit ///< Maximum number of elements to delete 1698 ); 1699 1601 1700 /** Removes the last row from the database and returns it 1602 1701 * … … 1780 1879 const char *exp_type, 1781 1880 psS32 imfiles 1881 ); 1882 1883 /** Deletes up to limit rows from the database and returns the number of rows actually deleted. 1884 * 1885 * @return A The number of rows removed or a negative value on error 1886 */ 1887 1888 long long pzPendingExpDelete( 1889 psDB *dbh, ///< Database handle 1890 const psMetadata *where, ///< Row match criteria 1891 unsigned long long limit ///< Maximum number of elements to delete 1782 1892 ); 1783 1893 … … 1968 2078 ); 1969 2079 2080 /** Deletes up to limit rows from the database and returns the number of rows actually deleted. 2081 * 2082 * @return A The number of rows removed or a negative value on error 2083 */ 2084 2085 long long pzPendingImfileDelete( 2086 psDB *dbh, ///< Database handle 2087 const psMetadata *where, ///< Row match criteria 2088 unsigned long long limit ///< Maximum number of elements to delete 2089 ); 2090 1970 2091 /** Removes the last row from the database and returns it 1971 2092 * … … 2152 2273 ); 2153 2274 2275 /** Deletes up to limit rows from the database and returns the number of rows actually deleted. 2276 * 2277 * @return A The number of rows removed or a negative value on error 2278 */ 2279 2280 long long newExpDelete( 2281 psDB *dbh, ///< Database handle 2282 const psMetadata *where, ///< Row match criteria 2283 unsigned long long limit ///< Maximum number of elements to delete 2284 ); 2285 2154 2286 /** Removes the last row from the database and returns it 2155 2287 * … … 2330 2462 const char *class_id, 2331 2463 const char *uri 2464 ); 2465 2466 /** Deletes up to limit rows from the database and returns the number of rows actually deleted. 2467 * 2468 * @return A The number of rows removed or a negative value on error 2469 */ 2470 2471 long long newImfileDelete( 2472 psDB *dbh, ///< Database handle 2473 const psMetadata *where, ///< Row match criteria 2474 unsigned long long limit ///< Maximum number of elements to delete 2332 2475 ); 2333 2476 … … 2532 2675 ); 2533 2676 2677 /** Deletes up to limit rows from the database and returns the number of rows actually deleted. 2678 * 2679 * @return A The number of rows removed or a negative value on error 2680 */ 2681 2682 long long rawDetrendExpDelete( 2683 psDB *dbh, ///< Database handle 2684 const psMetadata *where, ///< Row match criteria 2685 unsigned long long limit ///< Maximum number of elements to delete 2686 ); 2687 2534 2688 /** Removes the last row from the database and returns it 2535 2689 * … … 2739 2893 ); 2740 2894 2895 /** Deletes up to limit rows from the database and returns the number of rows actually deleted. 2896 * 2897 * @return A The number of rows removed or a negative value on error 2898 */ 2899 2900 long long rawScienceExpDelete( 2901 psDB *dbh, ///< Database handle 2902 const psMetadata *where, ///< Row match criteria 2903 unsigned long long limit ///< Maximum number of elements to delete 2904 ); 2905 2741 2906 /** Removes the last row from the database and returns it 2742 2907 * … … 2923 3088 const char *class_id, 2924 3089 const char *uri 3090 ); 3091 3092 /** Deletes up to limit rows from the database and returns the number of rows actually deleted. 3093 * 3094 * @return A The number of rows removed or a negative value on error 3095 */ 3096 3097 long long rawImfileDelete( 3098 psDB *dbh, ///< Database handle 3099 const psMetadata *where, ///< Row match criteria 3100 unsigned long long limit ///< Maximum number of elements to delete 2925 3101 ); 2926 3102 … … 3129 3305 const char *recipe, 3130 3306 psS32 p1_version 3307 ); 3308 3309 /** Deletes up to limit rows from the database and returns the number of rows actually deleted. 3310 * 3311 * @return A The number of rows removed or a negative value on error 3312 */ 3313 3314 long long p1PendingExpDelete( 3315 psDB *dbh, ///< Database handle 3316 const psMetadata *where, ///< Row match criteria 3317 unsigned long long limit ///< Maximum number of elements to delete 3131 3318 ); 3132 3319 … … 3349 3536 ); 3350 3537 3538 /** Deletes up to limit rows from the database and returns the number of rows actually deleted. 3539 * 3540 * @return A The number of rows removed or a negative value on error 3541 */ 3542 3543 long long p2PendingExpDelete( 3544 psDB *dbh, ///< Database handle 3545 const psMetadata *where, ///< Row match criteria 3546 unsigned long long limit ///< Maximum number of elements to delete 3547 ); 3548 3351 3549 /** Removes the last row from the database and returns it 3352 3550 * … … 3542 3740 psS32 p1_version, 3543 3741 psS32 p2_version 3742 ); 3743 3744 /** Deletes up to limit rows from the database and returns the number of rows actually deleted. 3745 * 3746 * @return A The number of rows removed or a negative value on error 3747 */ 3748 3749 long long p2PendingImfileDelete( 3750 psDB *dbh, ///< Database handle 3751 const psMetadata *where, ///< Row match criteria 3752 unsigned long long limit ///< Maximum number of elements to delete 3544 3753 ); 3545 3754 … … 3755 3964 ); 3756 3965 3966 /** Deletes up to limit rows from the database and returns the number of rows actually deleted. 3967 * 3968 * @return A The number of rows removed or a negative value on error 3969 */ 3970 3971 long long p2DoneExpDelete( 3972 psDB *dbh, ///< Database handle 3973 const psMetadata *where, ///< Row match criteria 3974 unsigned long long limit ///< Maximum number of elements to delete 3975 ); 3976 3757 3977 /** Removes the last row from the database and returns it 3758 3978 * … … 3948 4168 psS32 p1_version, 3949 4169 psS32 p2_version 4170 ); 4171 4172 /** Deletes up to limit rows from the database and returns the number of rows actually deleted. 4173 * 4174 * @return A The number of rows removed or a negative value on error 4175 */ 4176 4177 long long p2DoneImfileDelete( 4178 psDB *dbh, ///< Database handle 4179 const psMetadata *where, ///< Row match criteria 4180 unsigned long long limit ///< Maximum number of elements to delete 3950 4181 ); 3951 4182 … … 4158 4389 ); 4159 4390 4391 /** Deletes up to limit rows from the database and returns the number of rows actually deleted. 4392 * 4393 * @return A The number of rows removed or a negative value on error 4394 */ 4395 4396 long long p3PendingExpDelete( 4397 psDB *dbh, ///< Database handle 4398 const psMetadata *where, ///< Row match criteria 4399 unsigned long long limit ///< Maximum number of elements to delete 4400 ); 4401 4160 4402 /** Removes the last row from the database and returns it 4161 4403 * … … 4338 4580 psS32 iteration, 4339 4581 const char *det_type 4582 ); 4583 4584 /** Deletes up to limit rows from the database and returns the number of rows actually deleted. 4585 * 4586 * @return A The number of rows removed or a negative value on error 4587 */ 4588 4589 long long detRunDelete( 4590 psDB *dbh, ///< Database handle 4591 const psMetadata *where, ///< Row match criteria 4592 unsigned long long limit ///< Maximum number of elements to delete 4340 4593 ); 4341 4594 … … 4544 4797 ); 4545 4798 4799 /** Deletes up to limit rows from the database and returns the number of rows actually deleted. 4800 * 4801 * @return A The number of rows removed or a negative value on error 4802 */ 4803 4804 long long detInputExpDelete( 4805 psDB *dbh, ///< Database handle 4806 const psMetadata *where, ///< Row match criteria 4807 unsigned long long limit ///< Maximum number of elements to delete 4808 ); 4809 4546 4810 /** Removes the last row from the database and returns it 4547 4811 * … … 4735 4999 ); 4736 5000 5001 /** Deletes up to limit rows from the database and returns the number of rows actually deleted. 5002 * 5003 * @return A The number of rows removed or a negative value on error 5004 */ 5005 5006 long long detProcessedImfileDelete( 5007 psDB *dbh, ///< Database handle 5008 const psMetadata *where, ///< Row match criteria 5009 unsigned long long limit ///< Maximum number of elements to delete 5010 ); 5011 4737 5012 /** Removes the last row from the database and returns it 4738 5013 * … … 4918 5193 ); 4919 5194 5195 /** Deletes up to limit rows from the database and returns the number of rows actually deleted. 5196 * 5197 * @return A The number of rows removed or a negative value on error 5198 */ 5199 5200 long long detStackedImfileDelete( 5201 psDB *dbh, ///< Database handle 5202 const psMetadata *where, ///< Row match criteria 5203 unsigned long long limit ///< Maximum number of elements to delete 5204 ); 5205 4920 5206 /** Removes the last row from the database and returns it 4921 5207 * … … 5101 5387 ); 5102 5388 5389 /** Deletes up to limit rows from the database and returns the number of rows actually deleted. 5390 * 5391 * @return A The number of rows removed or a negative value on error 5392 */ 5393 5394 long long detNormalizedImfileDelete( 5395 psDB *dbh, ///< Database handle 5396 const psMetadata *where, ///< Row match criteria 5397 unsigned long long limit ///< Maximum number of elements to delete 5398 ); 5399 5103 5400 /** Removes the last row from the database and returns it 5104 5401 * … … 5276 5573 psS32 iteration, 5277 5574 const char *comment 5575 ); 5576 5577 /** Deletes up to limit rows from the database and returns the number of rows actually deleted. 5578 * 5579 * @return A The number of rows removed or a negative value on error 5580 */ 5581 5582 long long detMasterFrameDelete( 5583 psDB *dbh, ///< Database handle 5584 const psMetadata *where, ///< Row match criteria 5585 unsigned long long limit ///< Maximum number of elements to delete 5278 5586 ); 5279 5587 … … 5454 5762 const char *uri, 5455 5763 const char *recipe 5764 ); 5765 5766 /** Deletes up to limit rows from the database and returns the number of rows actually deleted. 5767 * 5768 * @return A The number of rows removed or a negative value on error 5769 */ 5770 5771 long long detMasterImfileDelete( 5772 psDB *dbh, ///< Database handle 5773 const psMetadata *where, ///< Row match criteria 5774 unsigned long long limit ///< Maximum number of elements to delete 5456 5775 ); 5457 5776 … … 5638 5957 ); 5639 5958 5959 /** Deletes up to limit rows from the database and returns the number of rows actually deleted. 5960 * 5961 * @return A The number of rows removed or a negative value on error 5962 */ 5963 5964 long long detResidImfileAnalysisDelete( 5965 psDB *dbh, ///< Database handle 5966 const psMetadata *where, ///< Row match criteria 5967 unsigned long long limit ///< Maximum number of elements to delete 5968 ); 5969 5640 5970 /** Removes the last row from the database and returns it 5641 5971 * … … 5821 6151 ); 5822 6152 6153 /** Deletes up to limit rows from the database and returns the number of rows actually deleted. 6154 * 6155 * @return A The number of rows removed or a negative value on error 6156 */ 6157 6158 long long detResidExpAnalysisDelete( 6159 psDB *dbh, ///< Database handle 6160 const psMetadata *where, ///< Row match criteria 6161 unsigned long long limit ///< Maximum number of elements to delete 6162 ); 6163 5823 6164 /** Removes the last row from the database and returns it 5824 6165 *
Note:
See TracChangeset
for help on using the changeset viewer.
