Skip to main content

str_for_sqlite

Function str_for_sqlite 

Source
pub(crate) fn str_for_sqlite(
    s: &[u8],
) -> (*const c_char, sqlite3_uint64, sqlite3_destructor_type)
Expand description

Returns (string ptr, len as c_int, SQLITE_STATIC | SQLITE_TRANSIENT) normally. The sqlite3_destructor_type item is always SQLITE_TRANSIENT unless the string was empty (in which case it’s SQLITE_STATIC, and the ptr is static).