IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 26, 2005, 11:13:36 AM (21 years ago)
Author:
desonia
Message:

changed PS_META* datatypes to more generic PS_DATA* datatypes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/db/psDB.h

    r4612 r5136  
    1010 *  @author Joshua Hoblitt
    1111 *
    12  *  @version $Revision: 1.13 $ $Name: not supported by cvs2svn $
    13  *  @date $Date: 2005-07-26 20:00:57 $
     12 *  @version $Revision: 1.14 $ $Name: not supported by cvs2svn $
     13 *  @date $Date: 2005-09-26 21:13:16 $
    1414 *
    1515 *  Copyright 2005 Joshua Hoblitt, University of Hawaii
     
    104104 * type is give by the psMetadataItem.type and psMetadataItem.ptype entries.  A
    105105 * lookup table should be used to convert from PSLib types into MySQL
    106  * compatible SQL data types.  For example, a PS_META_STR would map to an SQL99
    107  * varchar.  If the value of type is PS_META_STR then the psMetadataItem.data
     106 * compatible SQL data types.  For example, a PS_DATA_STRING would map to an SQL99
     107 * varchar.  If the value of type is PS_DATA_STRING then the psMetadataItem.data
    108108 * element is set to a string with the length for the field written as a text
    109109 * string.  The value of the psMetadataItem.data element is unused for the
    110  * PS_META_PRIMITIVE types.  Other psMetadata types beyond PS_META_STR and
     110 * PS_META_PRIMITIVE types.  Other psMetadata types beyond PS_DATA_STRING and
    111111 * PS_META_PRIMITIVE are not allowed in a table definition.
    112112 *
     
    170170 * values, one per row.
    171171 *
    172  * Currently, the "where" specification only supports the PS_META_STR type.
     172 * Currently, the "where" specification only supports the PS_DATA_STRING type.
    173173 * The string value can be a SQL match pattern, e.g. "%foo%", or an empty
    174174 * string, e.g. "", to match NULL field values.
     
    189189 * The "row" specification uses the psMetadataItem name as the column name.
    190190 * The field values may be specified in any order.  psMetadata types beyond
    191  * PS_META_STR and PS_META_PRIMITIVE are not supported.  If fields are
     191 * PS_DATA_STRING and PS_META_PRIMITIVE are not supported.  If fields are
    192192 * specified in "row" that do not exist in "tableName", the insert will fail.
    193193 *
Note: See TracChangeset for help on using the changeset viewer.