deleteRow
uses tcmts.cli.data_pages.withWritableStore, which uses node:path
Delete row id of table: whether there was one.
import type { Codebase } from "#codebase/tcmts/cli/codebase"; import { withWritableStore } from "#codebase/tcmts/cli/data_pages"; export function deleteRow(cb: Codebase, table: string, id: string): boolean { return withWritableStore( cb, (db) => db.prepare("DELETE FROM rows WHERE tbl = ? AND id = ?").run(table, id).changes > 0, ); }