Overload A Function For A Virtual Table

Overload A Function For A Virtual Table

int sqlite3_overload_function(sqlite3*, const char *zFuncName, int nArg);

Virtual tables can provide alternative implementations of functions using the xFindFunction method of the virtual table module- But global versions of those functions must exist in order to be overloaded-

This API makes sure a global version of a function with a particular name and number of parameters exists- If no such function exists before this API is called, a new function is created- The implementation of the new function always causes an exception to be thrown- So the new function is not good for anything by itself- Its only purpose is to be a placeholder function that can be overloaded by a virtual table.

See also lists of Objects, Constants, and Functions.

SQLite is in the Public Domain.
https://sqlite.org/c3ref/overload_function.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部