Changeset 3235 for trunk/doc/pslib/psLibSDRS.tex
- Timestamp:
- Feb 15, 2005, 2:38:40 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/doc/pslib/psLibSDRS.tex (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/pslib/psLibSDRS.tex
r3192 r3235 1 %%% $Id: psLibSDRS.tex,v 1.18 0 2005-02-11 21:06:02jhoblitt Exp $1 %%% $Id: psLibSDRS.tex,v 1.181 2005-02-16 00:38:40 jhoblitt Exp $ 2 2 \documentclass[panstarrs,spec]{panstarrs} 3 3 … … 4329 4329 entries. A lookup table should be used to convert from PSLib types 4330 4330 into MySQL compatible SQL data types. For example, a 4331 \code{PS_META_STR} would map to an SQL99 varchar. If value of4331 \code{PS_META_STR} would map to an SQL99 varchar. If the value of 4332 4332 \code{type} is \code{PS_META_STR} then the \code{psMetadataItem.data} 4333 4333 element is set to a string with the length for the field written as a … … 4360 4360 4361 4361 \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); 4363 4363 \end{verbatim} 4364 4364 … … 4402 4402 4403 4403 \begin{verbatim} 4404 ps U64 psDBUpdateRows(psDB *dbh, const char *tableName, psMetadata *where, psMetadata *values);4404 psS64 psDBUpdateRows(psDB *dbh, const char *tableName, psMetadata *where, psMetadata *values); 4405 4405 \end{verbatim} 4406 4406 … … 4408 4408 with the value indicated by \code{where} (note that this is only allows very 4409 4409 limited use of SQL99's ``where'' semantics). The number of rows modified is 4410 returned. If there are multiple psMetadataItems in \code{where} then each item4411 should be considered as an additional constraint. e.g. ``where foo = x and 4412 where bar = y''4413 4414 \begin{verbatim} 4415 ps U64 psDBDeleteRows(psDB *dbh, const char *tableName, psMetadata *where);4410 returned. A negative value is return to indicate an error. If there are 4411 multiple psMetadataItems in \code{where} then each item should be considered as 4412 an 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); 4416 4416 \end{verbatim} 4417 4417 4418 4418 Delete 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 4420 error. 4420 4421 4421 4422 \subsection{FITS I/O Functions}
Note:
See TracChangeset
for help on using the changeset viewer.
