Back to Beekeeper Studio

Entity API

apps/ui-kit/docs/api/entity.md

5.7.24.3 KB
Original Source

Entity API

For examples and usage details, visit:

Overview

The Entity type represents different kinds of database objects, such as tables, views, materialized views, routines, and schemas.

Entity Types

Table/View/Materialized View

PropertyTypeDescriptionDefault
idstringUnique identifierCombination of entityType, schema, and name
name<sup>required</sup>stringEntity name
entityType"table" | "view" | "materialized-view" | ""The type of entityundefined
schemastringSchema nameundefined
columnsTableColumn[]List of table columnsundefined

TableColumn Interface

PropertyTypeDescriptionDefault
field<sup>required</sup>stringColumn name
dataTypestringThe data type of the columnundefined

Routine

PropertyTypeDescriptionDefault
idstringUnique identifierCombination of entityType, schema, and name
name<sup>required</sup>stringRoutine name
entityType<sup>required</sup>"routine"Must be "routine"
schemastringSchema nameundefined
returnType<sup>required</sup>stringReturn type of the routine
returnTypeLengthnumberLength of the return type (if applicable)undefined
routineParamsRoutineParam[]List of routine parametersundefined

RoutineParam Interface

PropertyTypeDescriptionDefault
name<sup>required</sup>stringParameter name
type<sup>required</sup>stringData type of the parameter
lengthnumberLength of the parameterundefined

Schema

PropertyTypeDescriptionDefault
idstringUnique identifierCombination of entityType and name
name<sup>required</sup>stringSchema name
entityType<sup>required</sup>"schema"Must be "schema"