Skip to content

Adding a table script

The add-logic page creates a computed-column script on a table through the backend’s PostTableScript. It is reached at /admin/logic/new and posts to /admin/logic.

  • Target table — chosen by its table-definition ID from the list of tables the caller can see;
  • Target column — the column the script computes;
  • Steel expression — the script body, which must start with (;
  • Description — an optional note shown with the script.

A target table, a target column, and a non-empty expression are all required. The expression is trimmed and must start with an opening parenthesis, matching the Steel syntax the backend expects.

On success the page reports the new script’s ID and any warnings the backend returned. The script then appears in the table-definition workspace’s column list with its generated from source.

The web page posts one script at a time and surfaces only the ID and warnings. It does not edit or delete existing scripts, and it does not surface the script’s dependency details.

For the semantics of Steel expressions, dependencies, recomputation, and script immutability, see the server chapter Steel.