sqlite3_set_auxdata

inline fun <Data : Any> sqlite3_set_auxdata(context: sqlite3_context, index: Int, data: Data, destroy: SqliteDestroyCallback<Data>?)(source)

Set the auxiliary data pointer and delete function, for the index-th argument to the user-function defined by context. Any previous value is deleted by calling the delete function specified when it was set.

The left-most argument is 0.

Undocumented behavior: If index is negative then make the data available to all functions within the current prepared statement using index as an access code.

sqlite3_set_auxdata()