← All updates

A database for your site

Carriers get site.sql, a SQLite database that every carrier on your site shares and that keeps its data between requests and deploys.

Every site now has its own SQLite database, site.sql. Every carrier on the site shares it, and it keeps its data between requests and deploys. It's good for sign-ups, counters, RSVPs, and anything else small and live.

await site.sql.exec(
  "INSERT INTO signups (email, at) VALUES (?, ?)",
  body.email,
  new Date().toISOString(),
);

It comes with carriers v2 and is included with Pro. See Storing data for the details.

Comments

Add your thoughts

Loading comments…