self:destroy

Server

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


Syntax

local status = self:destroy()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Destroy a database instance
local entity = core.database.create("127.0.0.1", "root", "", "vital_sandbox")

entity:destroy()

On this page