IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 5193


Ignore:
Timestamp:
Sep 29, 2005, 1:19:25 PM (21 years ago)
Author:
jhoblitt
Message:

add file_id to ::Image::New
rename ::Image::New's table from 'new' -> 'image_new'
add ::Metadata::new

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/PS-IPP-MetaDB/lib/PS/IPP/MetaDB.pm

    r5192 r5193  
    11# Copyright (C) 2005  Joshua Hoblitt
    22#
    3 # $Id: MetaDB.pm,v 1.7 2005-09-29 23:08:14 jhoblitt Exp $
     3# $Id: MetaDB.pm,v 1.8 2005-09-29 23:19:25 jhoblitt Exp $
    44
    55package PS::IPP::MetaDB;
     
    136136=over 4
    137137
    138 =item * new
     138=item * image_new
    139139
    140140This table contains a list of new data waiting to be downloaded from the
     
    165165Date/Time stamp of file when the file became available.
    166166
     167=item * file_id
     168
     169OTIS's ID string for the file, i.e. it's filename.
     170
    167171=item * size
    168172
     
    189193sub init
    190194{
    191     __PACKAGE__->table("new");
     195    __PACKAGE__->table("image_new");
    192196    __PACKAGE__->create_table(q{
    193197        exp_id      BIGINT          NOT NULL PRIMARY KEY,
     
    196200        camera      VARCHAR(255),
    197201        stamp       DATETIME,
     202        file_id     VARCHAR(255),
     203        size        INT,
     204        md5         VARCHAR(32),
     205        url         VARCHAR(255)    NOT NULL
     206    });
     207    __PACKAGE__->set_up_table;
     208}
     209
     210=item * metadata_new
     211
     212This table contains a list of new metadata waiting to be downloaded from the
     213summit.  XXX Are these files written to disk or just parsed in memory?
     214
     215Table description:
     216
     217=over 4
     218
     219=item * stamp
     220
     221Date/Time stamp of file when the file became available.
     222
     223=item * file_id
     224
     225OTIS's ID string for the file, i.e. it's filename.
     226
     227=item * size
     228
     229The size of the file in bytes.
     230
     231=item * md5
     232
     233The md5 checksum of the file in hexadecimal form (ASCII).
     234
     235=item * url
     236
     237URL to retrieve data from.
     238
     239=back
     240
     241=cut
     242
     243package PS::IPP::MetaDB::Metadata::New;
     244
     245use base qw( PS::IPP::MetaDB );
     246
     247__PACKAGE__->register_init(\&init);
     248
     249sub init
     250{
     251    __PACKAGE__->table("metadata_new");
     252    __PACKAGE__->create_table(q{
     253        stamp       DATETIME,
     254        file_id     VARCHAR(255),
    198255        size        INT,
    199256        md5         VARCHAR(32),
Note: See TracChangeset for help on using the changeset viewer.