Changeset 9990 for trunk/psLib/src/db/psDB.h
- Timestamp:
- Nov 14, 2006, 3:34:42 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/db/psDB.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/db/psDB.h
r9544 r9990 10 10 * @author Joshua Hoblitt 11 11 * 12 * @version $Revision: 1. 29$ $Name: not supported by cvs2svn $13 * @date $Date: 2006-1 0-13 22:26:14$12 * @version $Revision: 1.30 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2006-11-15 01:34:42 $ 14 14 * 15 15 * Copyright 2005 Joshua Hoblitt, University of Hawaii … … 40 40 /** Opens a new database connection 41 41 * 42 * @return psDB*: A new psDB object if the database connection is successful or NULL on 43 * failure. 44 */ 42 * @return psDB*: A new psDB object if the database connection is 43 * successful or NULL on failure. 44 */ 45 psDB *psDBAlloc( 46 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 unsigned int port ///< Database port number 51 ); 52 53 /** Opens a new database connection 54 * 55 * This function is deprecated favor of psDBAlloc() 56 * 57 * @return psDB*: A new psDB object if the database connection is 58 * successful or NULL on failure. 59 */ 60 #ifdef DOXYGEN 45 61 psDB *psDBInit( 46 62 const char *host, ///< Database server hostname … … 50 66 unsigned int port ///< Database port number 51 67 ); 52 53 /** Closes a database connection */ 68 #else // DOXYGEN 69 #define psDBInit(host, user, passwd, dbname, port) \ 70 psDBAlloc(host, user, passwd, dbname, port) 71 #endif 72 73 #ifdef DOXYGEN 74 /** Closes a database connection 75 * 76 * This function is deprecated favor of psFree() 77 */ 54 78 void psDBCleanup( 55 79 psDB *dbh ///< Database handle 56 80 ); 81 #else // DOXYGEN 82 #define psDBCleanup(dbh) \ 83 psFree(dbh) 84 #endif 57 85 58 86 /** Creates a new database namespace
Note:
See TracChangeset
for help on using the changeset viewer.
