MCPcopy
hub / github.com/msgbyte/tianji / getTimestampIntervalQuery

Function getTimestampIntervalQuery

src/server/utils/prisma.ts:233–237  ·  view source on GitHub ↗
(field: string)

Source from the content-addressed store, hash-verified

231}
232
233export function getTimestampIntervalQuery(field: string) {
234 return Prisma.sql([
235 `floor(extract(epoch from max(${field}) - min(${field})))`,
236 ]);
237}
238
239type ExtractFindManyReturnType<T> = T extends (
240 args?: any

Callers 2

getApplicationEventStatsFunction · 0.85
getWorkspaceWebsiteStatsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected