Vital.sandbox
Database

self:get_type

Server

Returns the type name of the instance


Syntax

local result = self:get_type()

Parameters

TypeNameDescription

Returns

TypeNameDescription
string / boolresultType of the instance, or false if unavailable

Examples

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

engine.print("info", db:get_type()) --'database'

On this page