Versie 0.2.0

This commit is contained in:
Atreides Assets committed 2026-10-29 11:57:29 +01:00
commit e77d8fd373
495 files changed
+81026

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
// Generated, do not edit. sha256:416f49e0df1b9e917350543775b5f77f278748750a148f230f7651dff4cede7d
import * as db from '../db.js';
import { CONFIG } from '../../shared/config.js';
export function counts() {
return {
assets: db.one(`SELECT COUNT(*) AS n FROM Asset`).n,
accounts: db.one(`SELECT COUNT(*) AS n FROM Account`).n,
events: db.one(`SELECT COUNT(*) AS n FROM Event`).n,
valuations: db.one(`SELECT COUNT(*) AS n FROM Valuation`).n,
};
}
export function tableCounts() {
return CONFIG.DB_TABLES.map(name => ({
name,
n: db.one(`SELECT COUNT(*) AS n FROM ${name}`).n,
}));
}