method DatabaseSync.prototype.function
Overload 1
#DatabaseSync.prototype.function(): void
This method is used to create SQLite user-defined functions. This method is a
wrapper around sqlite3_create_function_v2()
.
Parameters #
#name: string
The name of the SQLite function to create.
#options: FunctionOptions
Optional configuration settings for the function.
#func: (...args: SupportedValueType[]) => SupportedValueType
The JavaScript function to call when the SQLite function is invoked.
Return Type #
void
Overload 2
#DatabaseSync.prototype.function(name: string,func: (...args: SupportedValueType[]) => SupportedValueType,): void
Parameters #
#name: string
#func: (...args: SupportedValueType[]) => SupportedValueType
Return Type #
void