Skip to content
Helix Docs
v1.28.0 CLI · SDK

Database cast helpers

New @trayai/helix-sdk/db helpers cast enum, numeric, array, and timestamp values for the managed database, and helix dev now fails the same way the deployed database does.

npm install @trayai/helix-cli@1.28.0 @trayai/helix-sdk@1.28.0
View as Markdown

What matters in this release

Added

enumColumn, numericNumber, textArray, and asTimestamptz

The deployed database receives string parameters untyped, so enum columns, number-mode numeric columns, text[] columns, and a bare Date in a sql template failed after deploy. These helpers from @trayai/helix-sdk/db cast the value for you and need no migration. A vector value still needs a cast in the SQL.

Read the docs →

Everything else that changed

Changed

  • A ctx.db() query that needs a cast now fails in helix dev too, with the same error Docs →

All releases

Loading search…

Jump to a section

tab to move · esc to close