Skip to content

Commit

Permalink
chore(doc): reword documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
aleks-f committed Sep 15, 2024
1 parent ea7f885 commit eacd68b
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions Data/SQLite/include/Poco/Data/SQLite/SessionImpl.h
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,12 @@ class SQLite_API SessionImpl: public Poco::Data::AbstractSessionImpl<SessionImpl

void setTransactionIsolation(Poco::UInt32 ti);
/// Sets the transaction isolation level.
/// Warning! If you want to use TRANSACTION_READ_UNCOMMITTED isolation level
/// than you shouldn't forget that enableSharedCache() and setThreadMode() will affect connection lock behavior
/// For ex. Use TRANSACTION_READ_UNCOMMITTED with enableSharedCache() and setThreadMode(THREAD_MODE_MULTI)
/// in cases when you have multiple threads, shared connection and custom code for table-lock exceptions
/// For ex. Two connections on the same thread with TRANSACTION_READ_UNCOMMITTED for only for one connection will throw exception "databse is locked"
/// Warning! In order to use TRANSACTION_READ_UNCOMMITTED isolation level, it is important
/// to keep in mind that enableSharedCache() and setThreadMode() affect connection lock behavior.
/// Eg. TRANSACTION_READ_UNCOMMITTED with enableSharedCache() and setThreadMode(THREAD_MODE_MULTI)
/// in a multiple thread, shared connection and custom code for table-lock exceptions scenario,
/// multiple connections on the same thread with TRANSACTION_READ_UNCOMMITTED will throw
/// "database locked" exception.

Poco::UInt32 getTransactionIsolation() const;
/// Returns the transaction isolation level.
Expand Down Expand Up @@ -149,7 +150,7 @@ class SQLite_API SessionImpl: public Poco::Data::AbstractSessionImpl<SessionImpl
Poco::Mutex _mutex;
static const std::string DEFERRED_BEGIN_TRANSACTION;
static const std::string EXCLUSIVE_BEGIN_TRANSACTION;
static const std::string IMMEDIATE_BEGIN_TRANSACTION;
static const std::string IMMEDIATE_BEGIN_TRANSACTION;
static const std::string COMMIT_TRANSACTION;
static const std::string ABORT_TRANSACTION;
static const std::string SQLITE_READ_UNCOMMITTED;
Expand Down

0 comments on commit eacd68b

Please sign in to comment.