MCPcopy Index your code
hub / github.com/TanStack/db / get

Function get

packages/db-sqlite-persistence-core/src/sqlite-core-adapter.ts:370–389  ·  view source on GitHub ↗
(target, prop, receiver)

Source from the content-addressed store, hash-verified

368): Record<string, unknown> {
369 return new Proxy(row, {
370 get(target, prop, receiver) {
371 if (typeof prop !== `string`) {
372 return Reflect.get(target, prop, receiver)
373 }
374
375 if (Object.prototype.hasOwnProperty.call(target, prop)) {
376 const value = Reflect.get(target, prop, receiver)
377 if (value !== undefined || !aliasSegments.has(prop)) {
378 return value
379 }
380
381 return target
382 }
383
384 if (aliasSegments.has(prop)) {
385 return target
386 }
387
388 return undefined
389 },
390 })
391}
392

Callers

nothing calls this directly

Calls 2

getMethod · 0.45
hasMethod · 0.45

Tested by

no test coverage detected