Skip to main content

str_to_sqlite3

Function str_to_sqlite3 

Source
pub fn str_to_sqlite3(val: &str) -> Result<*mut c_char, Error>
Expand description

Clone the provided string into a nul-terminated string created by sqlite3_malloc. This function returns a NULL pointer if the input string is empty. SQLite interfaces generally understand this to mean “no string”, but other consumers may expect a 0-length string.