Drop bag/scaffold glue and rebuild the web plugin for compose, SQLite CRUD, and listen, with call_lib_path support and a §4 English site sample. Co-authored-by: Cursor <cursoragent@cursor.com>
21 lines
446 B
Markdown
21 lines
446 B
Markdown
---
|
|
title: db/index
|
|
description: Open sqlite, init articles, seed once.
|
|
> ext/web/web.mq.md
|
|
> articles.mq.md as articles
|
|
> lib/fs.mq.md
|
|
---
|
|
|
|
## open
|
|
|
|
*`store` = > web.db url="sqlite:data/site.db" *
|
|
*`fields` = > articles.schema *
|
|
> `store`.init name=articles fields=`fields`
|
|
*`rows` = > `store`.select table=articles limit=1 *
|
|
1. `rows`
|
|
**`store`**
|
|
2. *
|
|
*`seed` = > articles.seed *
|
|
> `store`.insert table=articles rows=`seed`
|
|
**`store`**
|