Changeset 4540 for trunk/psLib/src/db/psDB.h
- Timestamp:
- Jul 12, 2005, 9:12:01 AM (21 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/db/psDB.h (modified) (18 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/db/psDB.h
r4429 r4540 10 10 * @author Joshua Hoblitt 11 11 * 12 * @version $Revision: 1.1 0$ $Name: not supported by cvs2svn $13 * @date $Date: 2005-0 6-29 19:43:55$12 * @version $Revision: 1.11 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2005-07-12 19:12:00 $ 14 14 * 15 15 * Copyright 2005 Joshua Hoblitt, University of Hawaii … … 34 34 typedef struct 35 35 { 36 void* mysql; ///< MySQL database handle36 void* mysql; ///< MySQL database handle 37 37 } 38 38 psDB; … … 44 44 */ 45 45 psDB *psDBInit( 46 const char *host, ///< Database server hostname47 const char *user, ///< Database username48 const char *passwd, ///< Database password49 const char *dbname ///< Database namespace46 const char *host, ///< Database server hostname 47 const char *user, ///< Database username 48 const char *passwd, ///< Database password 49 const char *dbname ///< Database namespace 50 50 ); 51 51 … … 53 53 */ 54 54 void psDBCleanup( 55 psDB *dbh ///< Database handle55 psDB *dbh ///< Database handle 56 56 ); 57 57 … … 61 61 */ 62 62 bool psDBCreate( 63 psDB *dbh, ///< Database handle64 const char *dbname ///< New database namespace63 psDB *dbh, ///< Database handle 64 const char *dbname ///< New database namespace 65 65 ); 66 66 … … 70 70 */ 71 71 bool psDBChange( 72 psDB *dbh, ///< Database handle73 const char *dbname ///< Database namespace72 psDB *dbh, ///< Database handle 73 const char *dbname ///< Database namespace 74 74 ); 75 75 … … 79 79 */ 80 80 bool psDBDrop( 81 psDB *dbh, ///< Database handle82 const char *dbname ///< Database namespace81 psDB *dbh, ///< Database handle 82 const char *dbname ///< Database namespace 83 83 ); 84 84 … … 92 92 */ 93 93 bool p_psDBRunQuery( 94 psDB *dbh, ///< Database handle95 const char *format ///< SQL string to execute94 psDB *dbh, ///< Database handle 95 const char *format ///< SQL string to execute 96 96 ); 97 97 … … 117 117 */ 118 118 bool psDBCreateTable( 119 psDB *dbh, ///< Database handle120 const char *tableName, ///< Table name121 const psMetadata *md ///< Column names, types, and indexes119 psDB *dbh, ///< Database handle 120 const char *tableName, ///< Table name 121 const psMetadata *md ///< Column names, types, and indexes 122 122 ); 123 123 … … 140 140 */ 141 141 psArray *psDBSelectColumn( 142 psDB *dbh, ///< Database handle143 const char *tableName, ///< Table name144 const char *col, ///< Column name145 unsigned long long limit ///< Maximum number of elements to return142 psDB *dbh, ///< Database handle 143 const char *tableName, ///< Table name 144 const char *col, ///< Column name 145 unsigned long long limit ///< Maximum number of elements to return 146 146 ); 147 147 … … 155 155 */ 156 156 psVector *psDBSelectColumnNum( 157 psDB *dbh, ///< Database handle158 const char *tableName, ///< Table name159 const char *col, ///< Column name157 psDB *dbh, ///< Database handle 158 const char *tableName, ///< Table name 159 const char *col, ///< Column name 160 160 psElemType type, ///< Resulting psVector type 161 unsigned long long limit ///< Maximum number of elements to return161 unsigned long long limit ///< Maximum number of elements to return 162 162 ); 163 163 … … 177 177 */ 178 178 psArray *psDBSelectRows( 179 psDB *dbh, ///< Database handle180 const char *tableName, ///< Table name181 const psMetadata *where, ///< Row match criteria182 unsigned long long limit ///< Maximum number of elements to return179 psDB *dbh, ///< Database handle 180 const char *tableName, ///< Table name 181 const psMetadata *where, ///< Row match criteria 182 unsigned long long limit ///< Maximum number of elements to return 183 183 ); 184 184 … … 195 195 */ 196 196 bool psDBInsertOneRow( 197 psDB *dbh, ///< Database handle198 const char *tableName, ///< Table name199 const psMetadata *row ///< Row description197 psDB *dbh, ///< Database handle 198 const char *tableName, ///< Table name 199 const psMetadata *row ///< Row description 200 200 ); 201 201 … … 210 210 */ 211 211 bool psDBInsertRows( 212 psDB *dbh, ///< Database handle213 const char *tableName, ///< Table name214 const psArray *rowSet ///< Set of rows to insert212 psDB *dbh, ///< Database handle 213 const char *tableName, ///< Table name 214 const psArray *rowSet ///< Set of rows to insert 215 215 ); 216 216 … … 223 223 */ 224 224 psArray *psDBDumpRows( 225 psDB *dbh, ///< Database handle226 const char *tableName ///< Table name225 psDB *dbh, ///< Database handle 226 const char *tableName ///< Table name 227 227 ); 228 228 … … 236 236 */ 237 237 psMetadata *psDBDumpCols( 238 psDB *dbh, ///< Database handle239 const char *tableName ///< Table name238 psDB *dbh, ///< Database handle 239 const char *tableName ///< Table name 240 240 ); 241 241 … … 252 252 */ 253 253 psS64 psDBUpdateRows( 254 psDB *dbh, ///< Database handle255 const char *tableName, ///< Table name256 const psMetadata *where, ///< Row match criteria257 const psMetadata *values ///< new field values254 psDB *dbh, ///< Database handle 255 const char *tableName, ///< Table name 256 const psMetadata *where, ///< Row match criteria 257 const psMetadata *values ///< new field values 258 258 ); 259 259 … … 269 269 */ 270 270 psS64 psDBDeleteRows( 271 psDB *dbh, ///< Database handle272 const char *tableName, ///< Table name273 const psMetadata *where, ///< Row match criteria274 unsigned long long limit ///< Maximum number of rows to delete271 psDB *dbh, ///< Database handle 272 const char *tableName, ///< Table name 273 const psMetadata *where, ///< Row match criteria 274 unsigned long long limit ///< Maximum number of rows to delete 275 275 ); 276 276
Note:
See TracChangeset
for help on using the changeset viewer.
