MCPcopy Index your code
hub / github.com/tinyplex/tinybase / delCells

Function delCells

test/unit/core/other/queries.test.ts:60–74  ·  view source on GitHub ↗
(tableId: Id = 't1')

Source from the content-addressed store, hash-verified

58};
59
60const delCells = (tableId: Id = 't1') => {
61 const cellId = (cellId: Id, cellIdSuffix = '') => `${cellId}${cellIdSuffix}`;
62 store
63 .delCell(tableId, 'r4', cellId('c3'))
64 .delCell(tableId, 'r4', cellId('c2'))
65 .delCell(tableId, 'r4', cellId('c1'))
66 .delRow(tableId, 'r3')
67 .delRow(tableId, 'r2')
68 .delTable(tableId);
69 if (store.hasTables()) {
70 store.delRow(tableId, 'r1');
71 } else {
72 store.delTables();
73 }
74};
75
76describe('Queries tables', () => {
77 describe('Selects', () => {

Callers 1

queries.test.tsFile · 0.70

Calls 6

cellIdFunction · 0.70
delTableMethod · 0.65
delRowMethod · 0.65
delCellMethod · 0.65
hasTablesMethod · 0.65
delTablesMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…