IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 8122


Ignore:
Timestamp:
Aug 3, 2006, 6:28:25 PM (20 years ago)
Author:
jhoblitt
Message:

VERSION 0.0.12

Location:
branches/jhoblitt/ippdb
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/jhoblitt/ippdb/configure.ac

    r8103 r8122  
    11AC_PREREQ(2.59)
    22
    3 AC_INIT([ippdb], [0.0.11], [pan-starrs.ifa.hawaii.edu])
     3AC_INIT([ippdb], [0.0.12], [pan-starrs.ifa.hawaii.edu])
    44AC_CONFIG_SRCDIR([ippdb.pc.in])
    55
  • branches/jhoblitt/ippdb/src/ippdb.c

    r8103 r8122  
    206206}
    207207
     208long 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}
    208222bool weatherPop(psDB *dbh, psF32 *temp01, psF32 *humi01, psF32 *temp02, psF32 *humi02, psF32 *temp03, psF32 *humi03, psF32 *pressure)
    209223{
     
    691705}
    692706
     707long 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}
    693721bool skyp_transparencyPop(psDB *dbh, char **filter, psF64 *trans, psS32 *nstars, psF64 *ra, psF64 *decl, psF32 *exptime, psF64 *sky_bright)
    694722{
     
    11981226}
    11991227
     1228long 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}
    12001242bool skyp_absorptionPop(psDB *dbh, char **disperser_id, psF32 *atmcomp1, psF32 *atmcomp2, psF32 *atmcomp3, psS32 *nstars, psF64 *ra, psF64 *decl, psF32 *exptime, psF64 *sky_bright)
    12011243{
     
    17081750}
    17091751
     1752long 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}
    17101766bool skyp_emissionPop(psDB *dbh, char **disperser_id, psF32 *atmcomp1, psF32 *atmcomp2, psF32 *atmcomp3, psF32 *continuum, psF32 *exptime)
    17111767{
     
    21752231}
    21762232
     2233long 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}
    21772247bool dimmPop(psDB *dbh, psF32 *sigmax, psF32 *sigmay, psF32 *fwhm, psF64 *ra, psF64 *decl, psF32 *expttime, char **telescope_id)
    21782248{
     
    26482718}
    26492719
     2720long 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}
    26502734bool skyp_irPop(psDB *dbh, psF64 *sky_bright, psF64 *sky_var, psF64 *ra, psF64 *decl, psF32 *fov_x, psF32 *fov_y)
    26512735{
     
    30813165}
    30823166
     3167long 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}
    30833181bool domePop(psDB *dbh, psF32 *az, bool *open, bool *light, bool *track)
    30843182{
     
    34903588}
    34913589
     3590long 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}
    34923604bool telescopePop(psDB *dbh, char **guide, psF32 *alt, psF32 *az, psF64 *ra, psF64 *decl)
    34933605{
     
    39214033}
    39224034
     4035long 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}
    39234049bool summitExpPop(psDB *dbh, char **exp_id, char **camera, char **telescope, char **exp_type, char **uri)
    39244050{
     
    43514477}
    43524478
     4479long 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}
    43534493bool pzPendingExpPop(psDB *dbh, char **exp_id, char **camera, char **telescope, char **exp_type, psS32 *imfiles)
    43544494{
     
    47934933}
    47944934
     4935long 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}
    47954949bool pzPendingImfilePop(psDB *dbh, char **exp_id, psS32 *bytes, char **md5sum, char **class, char **class_id, char **uri)
    47964950{
     
    52415395}
    52425396
     5397long 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}
    52435411bool newExpPop(psDB *dbh, char **exp_id, char **camera, char **telescope, char **exp_type, psS32 *imfiles)
    52445412{
     
    56605828}
    56615829
     5830long 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}
    56625844bool newImfilePop(psDB *dbh, char **exp_id, char **class, char **class_id, char **uri)
    56635845{
     
    61396321}
    61406322
     6323long 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}
    61416337bool 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)
    61426338{
     
    67446940}
    67456941
     6942long 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}
    67466956bool 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)
    67476957{
     
    72717481}
    72727482
     7483long 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}
    72737497bool rawImfilePop(psDB *dbh, char **exp_id, char **class, char **class_id, char **uri)
    72747498{
     
    77737997}
    77747998
     7999long 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}
    77758013bool 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)
    77768014{
     
    84488686}
    84498687
     8688long 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}
    84508702bool 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)
    84518703{
     
    90519303}
    90529304
     9305long 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}
    90539319bool p2PendingImfilePop(psDB *dbh, char **exp_id, char **class_id, char **uri, char **recipe, psS32 *p1_version, psS32 *p2_version)
    90549320{
     
    96009866}
    96019867
     9868long 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}
    96029882bool 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)
    96039883{
     
    1020310483}
    1020410484
     10485long 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}
    1020510499bool p2DoneImfilePop(psDB *dbh, char **exp_id, char **class_id, char **uri, char **recipe, psS32 *p1_version, psS32 *p2_version)
    1020610500{
     
    1074011034}
    1074111035
     11036long 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}
    1074211050bool 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)
    1074311051{
     
    1127811586}
    1127911587
     11588long 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}
    1128011602bool detRunPop(psDB *dbh, psS32 *iteration, char **det_type)
    1128111603{
     
    1174312065}
    1174412066
     12067long 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}
    1174512081bool 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)
    1174612082{
     
    1231712653}
    1231812654
     12655long 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}
    1231912669bool detProcessedImfilePop(psDB *dbh, psS32 *det_id, char **exp_id, char **class_id, char **uri, char **recipe)
    1232012670{
     
    1274613096}
    1274713097
     13098long 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}
    1274813112bool detStackedImfilePop(psDB *dbh, psS32 *det_id, psS32 *iteration, char **class_id, char **uri, char **recipe)
    1274913113{
     
    1317513539}
    1317613540
     13541long 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}
    1317713555bool detNormalizedImfilePop(psDB *dbh, psS32 *det_id, psS32 *iteration, char **class_id, char **uri, char **recipe)
    1317813556{
     
    1358013958}
    1358113959
     13960long 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}
    1358213974bool detMasterFramePop(psDB *dbh, psS32 *det_id, psS32 *iteration, char **comment)
    1358313975{
     
    1396214354}
    1396314355
     14356long 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}
    1396414370bool detMasterImfilePop(psDB *dbh, psS32 *det_id, char **class_id, char **uri, char **recipe)
    1396514371{
     
    1437314779}
    1437414780
     14781long 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}
    1437514795bool detResidImfileAnalysisPop(psDB *dbh, psS32 *det_id, psS32 *iteration, char **exp_id, char **class_id, char **recipe)
    1437614796{
     
    1480115221}
    1480215222
     15223long 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}
    1480315237bool detResidExpAnalysisPop(psDB *dbh, psS32 *det_id, psS32 *iteration, char **exp_id, char **recipe, bool *accept)
    1480415238{
  • branches/jhoblitt/ippdb/src/ippdb.h

    r8103 r8122  
    9797);
    9898
     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
     104long 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
    99110/** Removes the last row from the database and returns it
    100111 *
     
    286297    psF32           exptime,
    287298    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
     306long 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
    288310);
    289311
     
    485507);
    486508
     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
     514long 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
    487520/** Removes the last row from the database and returns it
    488521 *
     
    675708);
    676709
     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
     715long 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
    677721/** Removes the last row from the database and returns it
    678722 *
     
    865909);
    866910
     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
     916long 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
    867922/** Removes the last row from the database and returns it
    868923 *
     
    10531108);
    10541109
     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
     1115long 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
    10551121/** Removes the last row from the database and returns it
    10561122 *
     
    12321298    bool            light,
    12331299    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
     1307long 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
    12341311);
    12351312
     
    14161493);
    14171494
     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
     1500long 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
    14181506/** Removes the last row from the database and returns it
    14191507 *
     
    15991687);
    16001688
     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
     1694long 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
    16011700/** Removes the last row from the database and returns it
    16021701 *
     
    17801879    const char      *exp_type,
    17811880    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
     1888long 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
    17821892);
    17831893
     
    19682078);
    19692079
     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
     2085long 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
    19702091/** Removes the last row from the database and returns it
    19712092 *
     
    21522273);
    21532274
     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
     2280long 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
    21542286/** Removes the last row from the database and returns it
    21552287 *
     
    23302462    const char      *class_id,
    23312463    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
     2471long 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
    23322475);
    23332476
     
    25322675);
    25332676
     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
     2682long 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
    25342688/** Removes the last row from the database and returns it
    25352689 *
     
    27392893);
    27402894
     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
     2900long 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
    27412906/** Removes the last row from the database and returns it
    27422907 *
     
    29233088    const char      *class_id,
    29243089    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
     3097long 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
    29253101);
    29263102
     
    31293305    const char      *recipe,
    31303306    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
     3314long 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
    31313318);
    31323319
     
    33493536);
    33503537
     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
     3543long 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
    33513549/** Removes the last row from the database and returns it
    33523550 *
     
    35423740    psS32           p1_version,
    35433741    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
     3749long 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
    35443753);
    35453754
     
    37553964);
    37563965
     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
     3971long 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
    37573977/** Removes the last row from the database and returns it
    37583978 *
     
    39484168    psS32           p1_version,
    39494169    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
     4177long 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
    39504181);
    39514182
     
    41584389);
    41594390
     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
     4396long 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
    41604402/** Removes the last row from the database and returns it
    41614403 *
     
    43384580    psS32           iteration,
    43394581    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
     4589long 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
    43404593);
    43414594
     
    45444797);
    45454798
     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
     4804long 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
    45464810/** Removes the last row from the database and returns it
    45474811 *
     
    47354999);
    47365000
     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
     5006long 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
    47375012/** Removes the last row from the database and returns it
    47385013 *
     
    49185193);
    49195194
     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
     5200long 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
    49205206/** Removes the last row from the database and returns it
    49215207 *
     
    51015387);
    51025388
     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
     5394long 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
    51035400/** Removes the last row from the database and returns it
    51045401 *
     
    52765573    psS32           iteration,
    52775574    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
     5582long 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
    52785586);
    52795587
     
    54545762    const char      *uri,
    54555763    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
     5771long 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
    54565775);
    54575776
     
    56385957);
    56395958
     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
     5964long 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
    56405970/** Removes the last row from the database and returns it
    56415971 *
     
    58216151);
    58226152
     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
     6158long 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
    58236164/** Removes the last row from the database and returns it
    58246165 *
Note: See TracChangeset for help on using the changeset viewer.