Vital.sandbox
Database

self:destroy

Server

Destroys the database instance, closes the connection and frees its resources


Syntax

local status = self:destroy()

Parameters

TypeNameDescription

Returns

TypeNameDescription
boolstatustrue on successful execution, or false on failure

Examples

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

db:destroy()

On this page