pub unsafe extern "C" fn stumpless_get_sqlite3_insert_sql(
target: *const stumpless_target,
) -> *const c_charExpand description
Gets the SQL statement used to insert entries into the database. See \ref stumpless_set_sqlite3_insert_sql to change this statement.
Thread Safety: MT-Safe This function is thread safe as a mutex is used to coordinate the retrieval of the SQL statement 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 insert SQL from.
@return The current SQL used to insert entries into the database, as a UTF-8 encoded string. If an error occurs then NULL is returned and an error is set appropriately.