| 183 | |
| 184 | /** The sidecar JSON written to `<Name>.base/schema.json`. */ |
| 185 | export interface DatabaseSidecar { |
| 186 | version: 1 |
| 187 | /** Field whose cells hold the row UUID (its `name` is the CSV header). */ |
| 188 | idFieldId: string |
| 189 | /** Order == on-disk CSV column order. */ |
| 190 | fields: DbField[] |
| 191 | views: DbView[] |
| 192 | activeViewId: string |
| 193 | /** Row id → vault path of that record's "page" note (created on demand). */ |
| 194 | pages?: Record<string, string> |
| 195 | } |
| 196 | |
| 197 | /** Cells are raw CSV strings keyed by DbField.id. */ |
| 198 | export interface DbRow { |
nothing calls this directly
no outgoing calls
no test coverage detected