MCPcopy Create free account
hub / github.com/effect-app/libs / logQuery

Function logQuery

packages/infra/src/Store/Memory.ts:313–328  ·  view source on GitHub ↗
(f: FilterArgs<any, any>, defaultValues?: any)

Source from the content-addressed store, hash-verified

311}
312
313function logQuery(f: FilterArgs<any, any>, defaultValues?: any) {
314 return InfraLogger
315 .logDebug("mem query")
316 .pipe(Effect.annotateLogs({
317 filter: JSON.stringify(
318 f.filter,
319 undefined,
320 2
321 ),
322 order: JSON.stringify(f.order, undefined, 2),
323 select: JSON.stringify(f.select, undefined, 2),
324 defaultValues: JSON.stringify(defaultValues, undefined, 2),
325 skip: f.skip,
326 limit: f.limit
327 }))
328}
329
330export function makeMemoryStoreInt<IdKey extends keyof Encoded, Encoded extends FieldValues, R = never, E = never>(
331 modelName: string,

Callers 4

makeSQLStoreIntFunction · 0.90
makeSQLiteStorePerNsFunction · 0.90
Cosmos.tsFile · 0.90
makeMemoryStoreIntFunction · 0.70

Calls 1

pipeMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…