IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 3235


Ignore:
Timestamp:
Feb 15, 2005, 2:38:40 PM (21 years ago)
Author:
jhoblitt
Message:

add limit param to psDBSelectRows()
change psDBUpdateRows() & psDBDeleteRows() to return signed values

Location:
trunk/doc/pslib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/pslib/ChangeLogSDRS.tex

    r3192 r3235  
    1 %%% $Id: ChangeLogSDRS.tex,v 1.68 2005-02-11 21:06:02 jhoblitt Exp $
     1%%% $Id: ChangeLogSDRS.tex,v 1.69 2005-02-16 00:38:40 jhoblitt Exp $
    22
    33\subsection{Changes from version 00 to version 01}
     
    471471  \code{psPlaneDistort} into a straight spatial polynomial.
    472472\item fix typo in psVector typedef
    473 \end{itemize}
     473\item add limit param to psDBSelectRows()
     474\item change psDBUpdateRows() & psDBDeleteRows() to return signed values
     475\end{itemize}
  • trunk/doc/pslib/psLibSDRS.tex

    r3192 r3235  
    1 %%% $Id: psLibSDRS.tex,v 1.180 2005-02-11 21:06:02 jhoblitt Exp $
     1%%% $Id: psLibSDRS.tex,v 1.181 2005-02-16 00:38:40 jhoblitt Exp $
    22\documentclass[panstarrs,spec]{panstarrs}
    33
     
    43294329entries.  A lookup table should be used to convert from PSLib types
    43304330into MySQL compatible SQL data types.  For example, a
    4331 \code{PS_META_STR} would map to an SQL99 varchar.  If value of
     4331\code{PS_META_STR} would map to an SQL99 varchar.  If the value of
    43324332\code{type} is \code{PS_META_STR} then the \code{psMetadataItem.data}
    43334333element is set to a string with the length for the field written as a
     
    43604360
    43614361\begin{verbatim}
    4362     psArray *psDBSelectRows(psDB *dbh, const char *tableName, psMetadata *where);
     4362    psArray *psDBSelectRows(psDB *dbh, const char *tableName, psMetadata *where, const psU64 limit);
    43634363\end{verbatim}
    43644364
     
    44024402
    44034403\begin{verbatim}
    4404     psU64 psDBUpdateRows(psDB *dbh, const char *tableName, psMetadata *where, psMetadata *values);
     4404    psS64 psDBUpdateRows(psDB *dbh, const char *tableName, psMetadata *where, psMetadata *values);
    44054405\end{verbatim}
    44064406
     
    44084408with the value indicated by \code{where} (note that this is only allows very
    44094409limited use of SQL99's ``where'' semantics).  The number of rows modified is
    4410 returned.  If there are multiple psMetadataItems in \code{where} then each item
    4411 should be considered as an additional constraint.  e.g.  ``where foo = x and
    4412 where bar = y''
    4413 
    4414 \begin{verbatim}
    4415     psU64 psDBDeleteRows(psDB *dbh, const char *tableName, psMetadata *where);
     4410returned.  A negative value is return to indicate an error. If there are
     4411multiple psMetadataItems in \code{where} then each item should be considered as
     4412an additional constraint.  e.g.  ``where foo = x and where bar = y''
     4413
     4414\begin{verbatim}
     4415    psS64 psDBDeleteRows(psDB *dbh, const char *tableName, psMetadata *where);
    44164416\end{verbatim}
    44174417
    44184418Delete the rows that are matched by \code{where} using the same semantics for
    4419 \code{where} as in psDBUpdateRow().
     4419\code{where} as in psDBUpdateRow().  A negative value is returned to indicate an
     4420error.
    44204421
    44214422\subsection{FITS I/O Functions}
Note: See TracChangeset for help on using the changeset viewer.