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