Skip to content
Helix Docs
v1.20.0 CLI · SDK

Managed database

Give a project its own Postgres database: describe the tables in db/schema.ts, query them with Drizzle through ctx.db(), and run it locally in helix dev.

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

What matters in this release

Added

ctx.db() and a managed Postgres database per project

Add a db/schema.ts and a project gets its own Postgres database with pgvector. ctx.db() takes no argument and returns a typed Drizzle query builder over it. The first deploy creates the database, and every deploy applies your schema changes before the new code goes live. A call made while an idle database wakes up is retried automatically; other failures are not.

Read the docs →

Everything else that changed

Added

  • helix dev runs ctx.db() on an in-memory database built from db/schema.ts Docs →
  • helix db migrations lists the schema migrations applied to your database Docs →
  • helix init adds drizzle-orm and drizzle-kit to new projects Docs →

Deprecated

  • ctx.db(alias), the aliased Redshift client, is deprecatedIt still works and logs one warning per alias. There is no replacement yet, and it will be removed in a future major version. ctx.db() with no argument is not affected. Docs →
Maintenance and internal changes (1)
  • The ctx.kv() docs now say the local store resets on every file save in helix dev

All releases

Loading search…

Jump to a section

tab to move · esc to close