Mirrors the English sample on port 18082 using only Chinese class APIs for page, db, form, and app. Co-authored-by: Cursor <cursoragent@cursor.com>
452 B
452 B
title: db/index description: 打开 sqlite、建表、幂等种子。
ext/web/网页.mq.md articles.mq.md as articles
open
*store = > 网页.数据库 地址="sqlite:data/site-zh.db" *
*fields = > articles.schema *
store.初始化 名=articles 字段=fields*rows= >store.查询 表=articles 上限=1 *
rowsstore-
*seed = > articles.seed *
store.插入 表=articles 行=seedstore