> For the complete documentation index, see [llms.txt](https://docs.zontroy.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.zontroy.com/zontroy-offline-code-generator/zontroy-ai-offline-code-generator-tutorial/zg-entities.md).

# zg-entities

*<mark style="color:blue;">**zg-entities or zg-es**</mark>*

<figure><img src="/files/EYB8YDClzOOr092KfUwD" alt=""><figcaption><p>.zsif file example</p></figcaption></figure>

*zg-entities is used to retrieve all tables in a database. The zg-entities object can usually be run for .zsif files and can be used in a zg-for loop to perform a variety of operations, such as finding tables in a database.*

<figure><img src="/files/MG2Fh4ExL9HPfgFm1AO9" alt="" width="246"><figcaption></figcaption></figure>

```
// To access the name of each table in entities
zg-for(((zg-item:::[[[zg-entities]]]))){{{
[[[zg-item...zg-name]]] }}}
// or 
zg-for(((zg-item:::[[[zg-es]]]))){{{
[[[zg-item...zg-name]]] }}}
```
