stumpless_get_sqlite3_prepare

Function stumpless_get_sqlite3_prepare 

Source
pub unsafe extern "C" fn stumpless_get_sqlite3_prepare(
    target: *const stumpless_target,
    data: *mut *mut c_void,
) -> stumpless_sqlite3_prepare_func_t
Expand description

Gets the preparation function and data pointer used to prepare statements for insertion into the database. See \ref stumpless_set_sqlite3_prepare to change this function.

Thread Safety: MT-Safe This function is thread safe as a mutex is used to coordinate the retrieval of the function with other target modifications.

Async Signal Safety: AS-Unsafe lock Thisi function is not signal safe, as a non-reentrant lock is used to coordinate the read of the target with other potential accesses.

Async Cancel Safety: AC-Unsafe lock This function is not safe to call from threads that may be asynchronously cancelled, as the cleanup of the lock used for the target may not be completed.

@since release v2.2.0

@param target The target to get the prepare function from.

@param data A pointer to a variable where the data pointer should be written to. If this is NULL, then it is ignored.

@return The current prepare function for the target. If an error occurs then NULL is returned and an error is set appropriately.