Wire data_source into Document render, register Endpoint handlers via run_artifact, restore marqdo-blog as an Artifact site, and replace old compose_* web golds with ADR 0007 fixtures and docs. Co-authored-by: Cursor <cursoragent@cursor.com>
924 B
924 B
title: blog posts schema import data:ext/data/db.mq.md
schema
fields =
| 字段 | 类型 | 可空 |
|---|---|---|
| title | text | False |
| slug | text | False |
| summary | text | True |
| content | text | True |
| tag | text | True |
| created_at | text | True |
fields
seed
rows =
| title | slug | summary | content | tag | created_at |
|---|---|---|---|---|---|
| Hello Marqdo | hello | Welcome | # Hello\n\nExecutable documents. | intro | 2026-09-01 |
| Artifact Web | artifact-web | Document first | Pages are mq.md files. | design | 2026-09-28 |
rows
open
+ `url`="sqlite:data/blog.db"
store = > data.db url=url
fields = > schema
store.init name=posts fields=fieldsexisting = >store.select table="posts" limit=1
existingstore-
seed = > seed
store.insert table=posts rows=seedstore