Skip to main content
Go to Latest
method DB.prototype.deleteFunction
import { DB } from "https://deno.land/x/sqlite@v3.7.2/mod.ts";

Delete a user-defined SQL function previously created with createFunction.

After the function is deleted, it can no longer be used in queries, and is free to be re-defined.

Example

const double = (num: number) => num * 2;
db.createFunction(double);
// use the function ...
db.deleteFunction("double");

Parameters

name: string