#include <FBwDB.h>
Public Methods | |
| FBwDb () | |
| Default Constructor. | |
| FBwDb (const FBwServerDsc &pAlias, string pDbName, bool autoconnect=true) | |
| Constructor. | |
| void | Close () |
| Close the database. | |
| void | SetLogin (const FBwServerDsc &pAlias, string pDbName) |
| Sets Server login data. | |
| bool | Open () |
| Open the database. | |
| bool | IsOpen () const |
| Checks if the database is open. | |
| virtual | ~FBwDb () |
| Destructor. | |
| bool | InTransaction () |
| checks if current transaction is active | |
| void | GetLastError (BasicFBwErrorMgr *err) const |
| Sets error status of last operation to error Manager. | |
| bool | StartTransaction () |
| Starts current transaction. | |
| bool | StartTransaction (string name) |
| Starts transaction name and sets as current. | |
| FBwTransaction * | GetTransaction () |
| Get current transaction handler. | |
| FBwTransaction * | GetTransaction (string trname) |
| Get current transaction handler for transaction trname. | |
| isc_tr_handle * | TransHandle () |
| Get handle of current transaction. | |
| void | Commit () |
| Commit current active transaction. | |
| void | CommitAll () |
| Commit all active transactions. | |
| void | Commit (string trname) |
| Commit transaction trname. | |
| void | Rollback () |
| Rollback current active transaction. | |
| void | RollbackAll () |
| Rollback all active transactions. | |
| void | Rollback (string trname) |
| Rollback transaction trname. | |
| isc_db_handle * | GetHandle () |
| Gets Database Handle. | |
| ISC_STATUS * | GetStatus () |
| returns status vector | |
This wrapper holds Firebird database and transaction handles By default creates 2 transactions
|
||||||||||||||||
|
Constructor. Full constructor
|
|
|
Destructor. Close database if open |
1.2.17