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

Function getSyncMetadata

packages/electric-db-collection/src/electric.ts:1282–1291  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1280 * @returns Record containing relation information
1281 */
1282 const getSyncMetadata = (): Record<string, unknown> => {
1283 // Use the stored schema if available, otherwise default to 'public'
1284 const schema = relationSchema.state || `public`
1285
1286 return {
1287 relation: shapeOptions.params?.table
1288 ? [schema, shapeOptions.params.table]
1289 : undefined,
1290 }
1291 }
1292
1293 let unsubscribeStream: () => void
1294

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected