Skip to content

Commit

Permalink
i18n(zh-cn): Update astro-db.mdx (#10405)
Browse files Browse the repository at this point in the history
  • Loading branch information
liruifengv authored Dec 18, 2024
1 parent 2af91d2 commit c802722
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/content/docs/zh-cn/guides/astro-db.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ const comments = await db.select().from(Comment);

### 插入

要接受用户输入,如处理表单请求并将数据插入到你的远程托管数据库,需要为你的 Astro 项目配置 [按需渲染](/zh-cn/guides/on-demand-rendering/) 并为你的部署环境 [添加一个 SSR 适配器](/zh-cn/guides/on-demand-rendering/#add-an-adapter)
要接受用户输入,如处理表单请求并将数据插入到你的远程托管数据库,需要为你的 Astro 项目配置 [按需渲染](/zh-cn/guides/on-demand-rendering/) 并为你的部署环境 [添加一个适配器](/zh-cn/guides/on-demand-rendering/#add-an-adapter)

这个例子基于解析后表单的 POST 请求向 `Comment` 表插入一行:

Expand Down

0 comments on commit c802722

Please sign in to comment.