self:get_type

Server

Retrieves the type name of the instance


Syntax

local result = self:get_type()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
string | boolresultType of the instance, false if unavailable

Examples

Get the type of a database instance
local entity = core.database.create("127.0.0.1", "root", "", "vital_sandbox")

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

On this page