Vital.sandbox
Database

db_query:drop

Server

Drops the table from the database and removes it from the schema


Syntax

local status = db_query:drop()

Parameters

TypeNameDescription

Returns

TypeNameDescription
boolstatustrue on successful execution, or false on failure

Examples

local db = database.create("127.0.0.1", "root", "", "vital_sandbox")

--Drop the players table from the database
db:table("players")
    :drop()

On this page