From 18657a960e125336f704ea058e25c27bd3900dcb Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 5 May 2024 19:28:19 +0200 Subject: Adding upstream version 3.40.1. Signed-off-by: Daniel Baumann --- www/c3ref/overload_function.html | 143 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 143 insertions(+) create mode 100644 www/c3ref/overload_function.html (limited to 'www/c3ref/overload_function.html') diff --git a/www/c3ref/overload_function.html b/www/c3ref/overload_function.html new file mode 100644 index 0000000..b3350f7 --- /dev/null +++ b/www/c3ref/overload_function.html @@ -0,0 +1,143 @@ + + + + + +Overload A Function For A Virtual Table + + + +
+ + + +
+
+Small. Fast. Reliable.
Choose any three. +
+ + +
+
+ + + +
+
+
+ + +
+

SQLite C Interface

+

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.

+ -- cgit v1.2.3