# datasette-upload-dbs 插件发布 0.5a0 版本，新增正式 API，支持通过 curl 上传和原子替换 SQLite 数据库

- 来源：Simon Willison
- 发布时间：2026-08-12 04:35
- AIWatch 分数：52
- AIWatch 标记：未精选
- AIWatch 链接：https://aiwatch.icu/events/evt_01kzt6ebejbfn30dtd976hjdnp
- 原文链接：https://simonwillison.net/2026/Aug/11/datasette-upload-dbs/#atom-everything

## 精选理由

常规快讯，保留列表

## AI 摘要

datasette-upload-dbs 插件发布 0.5a0 版本，新增正式 API，支持通过 curl 上传和原子替换 SQLite 数据库。

## 正文

Release: datasette-upload-dbs 0.5a0

This plugin has been around for a while - it lets users upload a brand new SQLite database to a hosted Datasette instance, at which point that database will start being served by that instance.

It can also be used to atomically swap a database with a more recent version. The uploaded database is saved to a file, verified, then swapped in so /name starts serving the new one.

The new release adds a formalized API, so you can replace an existing database (or add a new one) like this:

curl -X POST \
  -H "Authorization: Bearer $API_TOKEN" \
  -H "Accept: application/json" \
  -F "db=@content.db" \
  -F "db_name=content" \
  https://your-instance.example.com/-/upload-dbs

This means you can build fresh databases in an environment such as GitHub Actions and swap them in production as soon as that build has completed.

Tags: datasette
