deno.com

method DatabaseSync.prototype.function

Overload 1

#DatabaseSync.prototype.function(
name: string,
options: FunctionOptions,
func: (...args: SupportedValueType[]) => SupportedValueType,
): 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.

Optional configuration settings for the function.

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

Return Type #

void