Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/nessie/deps.ts>SQLiteClient#deleteFunction

A modular Deno library for PostgreSQL, MySQL, MariaDB and SQLite migrations
Latest
method SQLiteClient.prototype.deleteFunction
import { SQLiteClient } from "https://deno.land/x/nessie@2.0.11/deps.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