Skip to main content

Object-Level Operations

These commands work with high-level ZeyOS entities.

db:get — Retrieve Entity

Full reference →

Retrieves an object by ID.

XML
<db:get entity="contacts" id="123" var="contact">
<db:field>firstname</db:field>
<db:field>lastname</db:field>
</db:get>

Related: "db:field reference →"

db:set — Create/Update Entity

Full reference →

Creates a new object or updates an existing one. Supports ExtData and Tags.

XML
<db:set entity="contacts" var="newId">
<db:data field="firstname">John</db:data>
<extdata:data field="custom_field">Value</extdata:data>
<tags:name>Customer</tags:name>
</db:set>

Related: "db:data reference → | extdata:data reference → | tags:name reference →"

db:remove — Delete Entity

Full reference →

Deletes an object by ID.

XML
<db:remove entity="contacts" id="123"/>

db:lookup — Find Entity ID

Full reference →

Finds an ID matching criteria.

XML
<db:lookup entity="contacts" var="id">
<db:is field="email">[email protected]</db:is>
</db:lookup>

Related: "db:is reference →"