Implement db.select where= with simple map and filter-table ops.

Equality maps and |字段|操作|值| rows (including like) feed parameterized AND clauses; admin smoke resets the SQLite sequence for stable ids.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
cflmyandCursor committed 2026-08-12 09:16:03 +08:00
1 parent 02b3dfab48
commit c181b74a88
10 files changed
+206 -13

No files matched your search

+3 -1
View File
@@ -97,8 +97,10 @@ Style tables live as `##` exports in site style modules; compose resolves them b
+ `where`=None
+ `limit`=200
Simple filters: one-row map of column→value (AND `=`), or rows `|字段|操作|值|` (`=` `!=` `>` `>=` `<` `<=` `like`).
*`url` = > json.get value=`self` key=url *
*`r` = > web_db_select url=`url` table=`table` limit=`limit` *
*`r` = > web_db_select url=`url` table=`table` where=`where` limit=`limit` *
**> json.get value=`r` key=rows**
## get
+3 -1
View File
@@ -89,8 +89,10 @@ description: 官方网站类(中文)。表格 + 方法;不写袋式胶水
+ `条件`=None
+ `上限`=200
简单条件:单行列→值映射(AND `=`),或 `|字段|操作|值|` 表(`=` `!=` `>` `>=` `<` `<=` `like`)。
*`url` = > json.get value=`self` key=url *
*`r` = > web_db_select url=`url` table=`表` limit=`上限` *
*`r` = > web_db_select url=`url` table=`表` where=`条件` limit=`上限` *
**> json.get value=`r` key=rows**
## 获取