MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / escapeDate

Method escapeDate

packages/db/src/clickhouse/query-builder.ts:285–293  ·  view source on GitHub ↗
(value: string | Date)

Source from the content-addressed store, hash-verified

283 }
284
285 private escapeDate(value: string | Date): string {
286 if (value instanceof Date) {
287 return sqlstring.escape(clix.datetime(value));
288 }
289
290 return value.replaceAll(this._dateRegex, (match) => {
291 return sqlstring.escape(match);
292 });
293 }
294
295 // Add join methods
296 join(table: string | Expression, condition: string, alias?: string): this {

Callers 4

escapeValueMethod · 0.95
fillMethod · 0.95
joinWithTypeMethod · 0.95
buildQueryMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected