MCPcopy Create free account
hub / github.com/tinyplex/tinybase / getRowKey

Function getRowKey

src/persisters/persister-durable-object-sql-storage/index.ts:97–98  ·  view source on GitHub ↗
(tableId: string, rowId: string)

Source from the content-addressed store, hash-verified

95 const insertTableSql = `INSERT INTO ${tablesTable} (type, table_id, row_id, cell_id, value_data, timestamp, hash) VALUES (?, ?, ?, ?, ?, ?, ?)`;
96 const insertValueSql = `INSERT INTO ${valuesTable} (value_id, value_data, timestamp, hash) VALUES (?, ?, ?, ?)`;
97 const getRowKey = (tableId: string, rowId: string) =>
98 jsonStringWithUndefined([tableId, rowId]);
99
100 // Initialize the SQL tables
101 const initializeTables = () => {

Callers 1

getPersistedFunction · 0.85

Calls 1

jsonStringWithUndefinedFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…