Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
method DB.prototype.deleteFunction
import { DB } from "https://deno.land/x/sqlite@v3.8/src/db.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