feat(C2): add money_raise_all + trade_intelligence safe queries
This commit is contained in:
parent
0849abd128
commit
69fe207c92
1 changed files with 6 additions and 0 deletions
|
|
@ -9,6 +9,12 @@ export interface ChQueryResult {
|
|||
}
|
||||
|
||||
const SAFE_QUERIES: Record<string, (params: Record<string, string>) => string> = {
|
||||
money_raise_all: () =>
|
||||
\`SELECT category, subcategory, region, stage, title, content, format, tags, source, language
|
||||
FROM money_raise.knowledge_base
|
||||
ORDER BY category, subcategory LIMIT 500\`,
|
||||
|
||||
|
||||
tables: () =>
|
||||
`SELECT database, name, engine, total_rows, formatReadableSize(total_bytes) AS size
|
||||
FROM system.tables
|
||||
|
|
|
|||
Loading…
Reference in a new issue