Database functions
Database functions are used to perform database-related tasks, such as creating new tables, reading data from existing tables, or updating table records. For an introduction to creating database schemas and tables and using database functions, see Database model.
| Function | Description |
|---|---|
| create‑table | Create a table identified by the specified table name. |
| describe‑keyset | Retrieve metadata for a specified keyset. |
| describe‑module | Retrieve metadata for a specified module. |
| describe‑table | Retrieve metadata for a specified table. |
| fold-db | Select rows from a specified table and iterate over them using a specified consumer function. |
| insert | Write a new entry in a specified table for a given key of object data. |
| list-modules | List all of the modules deployed on a particular chain. |
| read | Retrieve a row from a specified table by its key row. |
| select | Retrieve full rows or specified columns from a table. |
| update | Update the specified {column:value} object in the specified table for a given key row |
| with-default-read | Read columns from a default object with matching key names if the specified key row isn't found. |
| with-read | Read a row from a specified table for a given key row and bind column names to variables. |
| write | Write the specified {column:value} object in the specified table for a given key row. |