---
url: /process-functions/table-list.md
description: Lists the model's tables.
---

# table.list

Lists the model's [tables](/technical/tables).

::: tip
For more control, such as other column types, indexes or keys, manage tables with SQL instead. Run `CREATE`, `ALTER` and `DROP TABLE` statements with [DatasourceClient](/process-functions/datasourceclient)'s `execute`.
:::

```js
table.list()
```

## Returns

The table names, as a JSON array string. Use `JSON.parse()` to read it.

## Examples

::: code-group

```js [list.js]
const tables = JSON.parse(table.list());
```

```json [Result]
["users", "products"]
```

:::

## Related

* [table.exists](/process-functions/table-exists)
* [table.fields](/process-functions/table-fields)
