Changeset 21401 for trunk/psLib/src/db/psDB.h
- Timestamp:
- Feb 6, 2009, 3:11:24 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/db/psDB.h (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/db/psDB.h
r14761 r21401 22 22 * perform basic database operations. 23 23 * 24 * $Id: psDB.h,v 1.3 7 2007-09-05 23:20:04 jhoblittExp $24 * $Id: psDB.h,v 1.38 2009-02-07 01:11:24 eugene Exp $ 25 25 */ 26 26 … … 119 119 ); 120 120 121 /** Executes a SQL query121 /** Formats and Executes a SQL query 122 122 * 123 123 * This function will execute a string as a raw SQL query. No additional … … 127 127 * @return bool: true on success 128 128 */ 129 bool p_psDBRunQuery (129 bool p_psDBRunQueryF( 130 130 psDB *dbh, ///< Database handle 131 131 const char *format, ///< SQL string to execute … … 133 133 ) PS_ATTR_FORMAT(printf, 2, 3); 134 134 135 /** Executes a SQL query as a prepared statement135 /** Executes a SQL query 136 136 * 137 137 * This function will execute a string as a raw SQL query. No additional … … 139 139 * dialect is provided. Caveat emptor. 140 140 * 141 * @return bool: true on success 142 */ 143 bool p_psDBRunQuery( 144 psDB *dbh, ///< Database handle 145 const char *query ///< SQL string to execute 146 ); 147 148 /** Formats and Executes a SQL query as a prepared statement 149 * 150 * This function will execute a string as a raw SQL query. No additional 151 * processing of the string or abstraction of the underlying database's SQL 152 * dialect is provided. Caveat emptor. 153 * 141 154 * @return long: the number of database rows affected 142 155 */ 143 long p_psDBRunQueryPrepared (156 long p_psDBRunQueryPreparedF( 144 157 psDB *dbh, ///< Database handle 145 158 const psArray *rowSet, ///< row data as psArray of psMetadata … … 147 160 ... 148 161 ) PS_ATTR_FORMAT(printf, 3, 4); 162 163 /** Executes a SQL query as a prepared statement 164 * 165 * This function will execute a string as a raw SQL query. No additional 166 * processing of the string or abstraction of the underlying database's SQL 167 * dialect is provided. Caveat emptor. 168 * 169 * @return long: the number of database rows affected 170 */ 171 long p_psDBRunQueryPrepared( 172 psDB *dbh, ///< Database handle 173 const psArray *rowSet, ///< row data as psArray of psMetadata 174 const char *query ///< SQL string to execute 175 ); 149 176 150 177 /** Fetches the result of a SQL query
Note:
See TracChangeset
for help on using the changeset viewer.
