MCPcopy
hub / github.com/7836246/cursor2api / DbQueryOpts

Interface DbQueryOpts

src/logger-db.ts:79–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79export interface DbQueryOpts {
80 limit: number;
81 before?: number; // timestamp < before(游标翻页)
82 since?: number; // timestamp >= since(时间范围)
83 status?: string; // 精确匹配 summary.status
84 keyword?: string; // 模糊匹配 title/model/request_id
85}
86
87/** 动态构建 WHERE 子句(参数化,防注入) */
88function buildWhere(opts: Omit<DbQueryOpts, 'limit'>): { where: string; params: Record<string, unknown> } {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected