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:
1 parent
02b3dfab48
commit
c181b74a88
10 files changed
+206
-13
No files matched your search
@@ -279,7 +279,7 @@ async fn admin_table(State(st): State<Arc<AppState>>, Path(table): Path<String>)
|
||||
return r;
|
||||
}
|
||||
let url = st.db_url.as_deref().unwrap();
|
||||
let Ok(data) = db::select(url, &table, 200) else {
|
||||
let Ok(data) = db::select(url, &table, 200, None) else {
|
||||
return Html(format!("<p>cannot read {table}</p>")).into_response();
|
||||
};
|
||||
let rows = data
|
||||
|
||||
Reference in new issue
Block a user