Skip to main content
Module

x/cotton/mod.ts>Schema#dropTable

SQL Database Toolkit for Deno
Latest
method Schema.prototype.dropTable
import { Schema } from "https://deno.land/x/cotton@v0.7.5/mod.ts";

Drop a single table

Parameters

tableName: string

table to be dropped

optional
options: { ifExists?: boolean; }

advanced options

Returns

Promise<void>

Drop multiple tables

Parameters

tableNames: string[]

tables to be dropped

optional
options: { ifExists?: boolean; }

advanced options

Returns

Promise<void>