added Session::isTransaction()

This commit is contained in:
Guenter Obiltschnig
2007-08-10 14:08:45 +00:00
parent a04bae94d7
commit dfbc0e1d24
10 changed files with 9722 additions and 5857 deletions

View File

@@ -83,6 +83,9 @@ public:
bool isConnected();
/// Returns true if connected, false otherwise.
bool isTransaction();
/// Returns true iff a transaction is in progress.
private:
void open();
/// Opens a connection to the Database.
@@ -90,6 +93,7 @@ private:
std::string _dbFileName;
sqlite3* _pDB;
bool _connected;
bool _isTransaction;
static const std::string DEFERRED_BEGIN_TRANSACTION;
static const std::string COMMIT_TRANSACTION;
@@ -97,6 +101,15 @@ private:
};
//
// inlines
//
inline bool SessionImpl::isTransaction()
{
return _isTransaction;
}
} } } // namespace Poco::Data::SQLite