Database
db_query:drop
Server
Drops the table from the database and removes it from the schema
Syntax
local status = db_query:drop()Parameters
| Type | Name | Description |
|---|
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true 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()