create_function method
int
create_function(
- PtrSqlite3 db,
- String zFunctionName,
- int nArg,
- int eTextRep,
- PtrVoid pApp,
- PtrDefpxFunc xFunc,
- PtrDefpxFunc xStep,
- PtrDefxFinal xFinal,
inherited
Implementation
int create_function(PtrSqlite3 db, String zFunctionName, int nArg, int eTextRep, PtrVoid pApp,
PtrDefpxFunc xFunc, PtrDefpxFunc xStep, PtrDefxFinal xFinal) {
final zFunctionNameMeta = zFunctionName._metaNativeUtf8();
final ptrZFunctionName = zFunctionNameMeta.ptr;
try {
return _h_sqlite3_create_function(
db, ptrZFunctionName, nArg, eTextRep, pApp, xFunc, xStep, xFinal);
} finally {
pkgffi.malloc.free(ptrZFunctionName);
}
}