SQLITE3SESSION_INDIRECT(3) Library Functions Manual SQLITE3SESSION_INDIRECT(3)

sqlite3session_indirectset or clear the indirect change flag

#include <sqlite3.h>

int
sqlite3session_indirect(sqlite3_session *pSession, int bIndirect);

Each change recorded by a session object is marked as either direct or indirect. A change is marked as indirect if either:

If a single row is affected by more than one operation within a session, then the change is considered indirect if all operations meet the criteria for an indirect change above, or direct otherwise.

This function is used to set, clear or query the session object indirect flag. If the second argument passed to this function is zero, then the indirect flag is cleared. If it is greater than zero, the indirect flag is set. Passing a value less than zero does not modify the current value of the indirect flag, and may be used to query the current state of the indirect flag for the specified session object.

The return value indicates the final state of the indirect flag: 0 if it is clear, or 1 if it is set.

These declarations were extracted from the interface documentation at line 11071.

SQLITE_API int sqlite3session_indirect(sqlite3_session *pSession, int bIndirect);
January 24, 2024 NetBSD 11.0