MCPcopy Index your code
hub / github.com/simstudioai/sim / orderByClause

Function orderByClause

apps/sim/lib/logs/list-logs.ts:114–114  ·  view source on GitHub ↗
(expr: SQL)

Source from the content-addressed store, hash-verified

112 const dir = sortOrder === 'asc' ? asc : desc
113 const nullsLast = sql`NULLS LAST`
114 const orderByClause = (expr: SQL): SQL => sql`${dir(expr)} ${nullsLast}`
115
116 const buildCursorCondition = (sortExpr: unknown, idCol: unknown): SQL | undefined => {
117 if (!cursor) return undefined

Callers 1

listLogsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected