Skip to content

Instantly share code, notes, and snippets.

@yangacer
Created February 3, 2013 16:36
Show Gist options
  • Save yangacer/4702431 to your computer and use it in GitHub Desktop.
Save yangacer/4702431 to your computer and use it in GitHub Desktop.
sqlite3_create_functoin_v2 comment
int sqlite3_create_function_v2(
sqlite3 *db, // db connection
const char *zFunctionName, // function name
int nArg, // number of argument this function takes. -1 for arbitrary numbers
int eTextRep, // text encoding, e.g. SQLITE_UTF8 or SQLITE_ANY
void *pApp, // pinter to function context
void (*xFunc)(sqlite3_context*,int,sqlite3_value**), // a scalar function implementation
void (*xStep)(sqlite3_context*,int,sqlite3_value**), // a aggregate function implementation
void (*xFinal)(sqlite3_context*), // the same pointer with previous one
void(*xDestroy)(void*) // destroy function context
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment