IAPI::SQLite_pendingTransactionCount

property SQLite_pendingTransactionCount.

Retrieves the count of uncommited SQL transactions. Default timeout for committing transactions is 15 seconds.

Note that using this property in a loop, will greatly help wait all uncommitted SQL statements occur gracefully.

 

Example in VBScript:

' Block and pause until all commits terminate into SQLite file

Do Until ScriptEZ.SQLite_pendingTransactionCount(hSQLite) = 0

    WScript.Sleep 1000

Loop

 

HRESULT SQLite_pendingTransactionCount(
  long hSQlite3DB,
  long *pVal
);

Parameters

hSQlite3DB

[in] .   Handle of SQLite database

pVal

[out, retval] The returned value is a long value.

Return Values

S_OK

The operation was successfull.

E_POINTER

A NULL pointer was supplied as an argument.

E_UNEXPECTED

An unexpected error occoured.

See Also

IAPI