ai · Simon Willison Weblog Artykuł

Creating tables and data entry in Datasette (Datasette Advent Day 3)

Simon Willison’s Weblog

Newsletter Sponsored by: Greptile — Review code faster with Greptile’s new PR inbox. It puts everything you need to understand a change and merge it on one screen. Try it for free

3rd December 2026 - Link Blog

Creating tables and data entry in Datasette (Datasette Advent Day 3). Today's video covers creating tables in Datasette, inserting and updating data, altering tables, and setting up foreign key and many-to-many relationships. It also features the new ability to set the "label column" for a table (added in Datasette 1.0a47), so that when that table is included in a relationship Datasette knows which columns to use to summarize it.

In this video I used this uvx command to launch Datasette without needing to first install it:

uvx --pre datasette sightings.db --create --root

The --pre gets me the latest Datasette alpha, --create causes it to create that sightings.db database if it does not yet exist, and the --root option gives me a URL in my terminal I can use to sign in as root, ensuring I have the permissions needed to create and alter tables and insert data.

Posted 3rd December 2026 at 11:59 pm

Recent articles

This is a link post by Simon Willison, posted on 3rd December 2026.

youtube 70 datasette 1,589

Monthly briefing

Sponsor me for $10/month and get a curated email digest of the month's most important LLM developments.

Pay me to send you less!

Sponsor & subscribe