Files
marqdo/examples/web-site-zh/db/index.mq.md
T
cflmyandCursor a0c56fa352 Add Chinese web-site example and 网页.mq.md smoke.
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>
2026-08-12 09:20:34 +08:00

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 *

  1. rows store

*seed = > articles.seed *

store.插入 表=articles 行=seed store