home *** CD-ROM | disk | FTP | other *** search
- // =================================================================
- // Oracle.h
- // =================================================================
- // Harold Kasperink / John Dekker
- // Dr. Dobb's Journal 1997
- // =================================================================
- // Oracle PrcC/C++ function headers
- // =================================================================
- #ifndef _ORACLE_H_
- #define _ORACLE_H_
-
- ////////////////////////////////////////////////////////////////////
- // DB_Connect
- ////////////////////////////////////////////////////////////////////
- // Connect with database session to oracle
- // with username/password@server in pszUsr
- ////////////////////////////////////////////////////////////////////
- long DB_Connect(const char *pszUsr);
-
- ////////////////////////////////////////////////////////////////////
- // DB_Disconnect
- ////////////////////////////////////////////////////////////////////
- // Disconnect from oracle
- ////////////////////////////////////////////////////////////////////
- long DB_Disconnect();
-
- ////////////////////////////////////////////////////////////////////
- // DB_Commit
- ////////////////////////////////////////////////////////////////////
- // Commit transaction for database session
- ////////////////////////////////////////////////////////////////////
- long DB_Commit(void *pCmd);
-
- ////////////////////////////////////////////////////////////////////
- // DB_Rollback
- ////////////////////////////////////////////////////////////////////
- // Rollback transaction for database session
- ////////////////////////////////////////////////////////////////////
- long DB_Rollback(void *pCmd);
-
- ////////////////////////////////////////////////////////////////////
- // DB_FindPerson
- ////////////////////////////////////////////////////////////////////
- // Find a if person exists in the database
- ////////////////////////////////////////////////////////////////////
- extern long DB_FindPerson(void *pCmd, char *pszFirstName, char *pszLastName);
-
- #endif
-