IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 4, 2006, 4:42:01 PM (20 years ago)
Author:
Paul Price
Message:

Applying patch from Josh Hoblitt: Patch to add transaction control to psdb

File:
1 edited

Legend:

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

    r7050 r7070  
    1010 *  @author Joshua Hoblitt
    1111 *
    12  *  @version $Revision: 1.15 $ $Name: not supported by cvs2svn $
    13  *  @date $Date: 2006-05-03 02:35:37 $
     12 *  @version $Revision: 1.16 $ $Name: not supported by cvs2svn $
     13 *  @date $Date: 2006-05-05 02:42:01 $
    1414 *
    1515 *  Copyright 2005 Joshua Hoblitt, University of Hawaii
     
    285285);
    286286
     287/** Enable/Disable explicit database transactions
     288 *
     289 * This function is used to enable explicit transaction support.  It is off by
     290 * default.
     291 *
     292 * @return bool:    true if transactions are enabled
     293 */
     294bool psDBExplicitTrans(
     295    psDB *dbh,                          ///< Database handle
     296    bool mode                           ///< transactions enable/disable
     297);
     298
     299/** Start a new transaction set.
     300 *
     301 * This is only a meaningful action if explict transactions are disabled.
     302 *
     303 * @return bool:    true on success
     304 */
     305bool psDBTransaction(
     306    psDB *dbh                           ///< Database handle
     307);
     308
     309/** Commits the current transaction
     310 *
     311 * This function will commit the current transaction set (a rollback is not
     312 * possible after this function is successfully executed).  A commit also
     313 * effectively starts a new transaction if explict transactions are enabled.
     314 *
     315 * @return bool:    true on success
     316 */
     317bool psDBCommit(
     318    psDB *dbh                           ///< Database handle
     319);
     320
     321/** Rollback the current transaction
     322 *
     323 * This function will rollback the current transaction set.
     324 *
     325 * @return bool:    true on success
     326 */
     327bool psDBRollback(
     328    psDB *dbh                           ///< Database handle
     329);
     330
    287331/// @}
    288332
Note: See TracChangeset for help on using the changeset viewer.