MCPcopy Create free account
hub / github.com/TanStack/db / serializeValue

Function serializeValue

packages/trailbase-db-collection/src/trailbase.ts:488–499  ·  view source on GitHub ↗
(column: string, value: T)

Source from the content-addressed store, hash-verified

486 }
487
488 function serializeValue<T = any>(column: string, value: T): string {
489 const conv = (config.serialize as any)[column]
490 if (conv) {
491 return `${conv(value)}`
492 }
493
494 if (typeof value === 'boolean') {
495 return value ? '1' : '0'
496 }
497
498 return `${value}`
499 }
500
501 switch (where.type) {
502 case 'func': {

Callers 1

buildFiltersFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected