sqlite3_create_function
fun <AppData> sqlite3_create_function(db: sqlite3, name: String, nArg: Int, encoding: SqliteFunctionTextEncoding, appData: AppData, func: SqliteFunctionFuncCallback<in AppData>?, step: SqliteFunctionStepCallback<in AppData>?, final: SqliteFunctionFinalCallback<in AppData>?): SqliteResultCode(source)
Create new user functions.
Ksqlite
This function differs from sqlite3_create_function_v2() in the destroy parameter only. As Ksqlite internally associates some resources with the function that need to be clenaed up once the function is dropped, sqlite3_create_function_v2() is used in place of sqlite3_create_function(). That being said, the semantic of both functions is the same as stated by SQLite.