Commit Graph

24 Commits

Author SHA1 Message Date
58e9aa8fad feat(db-tool): hectic-inheritance: bootstrap hectic.created_at / hectic.updated_at inheritance hook
Adds a SQL bundle plus event triggers that enforce `INHERITS (hectic.created_at)`
on every user CREATE TABLE and auto-attach a BEFORE UPDATE row trigger when a
table inherits `hectic.updated_at`. Always-exempt: `hectic`, `information_schema`,
`pg_*`, declarative partitions, temp tables. Per-DB opt-out via the GUC
`hectic.inheritance_extra_excluded_schemas`.

Exposed three ways:
  * `pkgs.hectic.hectic-inheritance` — derivation with the SQL at
    $out/share/hectic/hectic-inheritance.sql
  * `self.lib.hecticInheritance.{sql,path}` — pkgs-free Nix surface
  * `postgres-init` opt-in via `PG_HECTIC_INHERITANCE=1` (HECTIC_INHERITANCE_SQL
    overrides the default)

Test postgres-init-hectic-inheritance covers all six branches: bootstrap,
non-inheriting reject, accepting inheritance, auto updated_at trigger fires,
GUC exclusion, declarative partition exemption.
2026-04-30 15:16:57 +00:00
b5dcbf08a1 feat(\db-tool\): introduce unified db-tool package with postgres harness and tests (T0-T8) 2026-04-30 09:06:44 +00:00
0d7b84e3bc refactor: derustification 2026-02-20 17:36:20 +00:00
d8a51cd389 refactor: update to 25.11 2026-02-20 17:18:38 +00:00
63a7fd716f apply patch from neuro 2026-02-20 12:51:32 +00:00
4a9bb42015 feat(nixos): some moves to nixos server 2025-12-28 19:18:15 +00:00
b786098867 feat(package): migrator: something 2025-12-04 21:02:38 +00:00
777d48bf3d feat(package): hemar: antlr grammar, but still does not work 2025-11-26 14:48:51 +00:00
f5d412997e feat(package): hemar: conected to nix config 2025-11-24 14:33:45 +00:00
88573ea4aa feat(package): nbt2json: pack into nix 2025-11-14 21:12:41 +00:00
9d97fd8d87 refactor(package): pull out all realization from default.nix 2025-11-03 20:08:20 +00:00
94fbbdf0d9 fix(package): in default.nix migratior -> migrator 2025-11-03 19:15:57 +00:00
532f4b0901 feat(legacy): +writeDash +helpers 2025-11-03 18:51:38 +00:00
b400acd18e some fixes 2025-10-23 11:28:56 +00:00
dd0d823e36 feat(package): +deploy 2025-10-23 10:22:48 +00:00
dbe4dfc2bc feat(package): sentinèlla: sentinel: loging 2025-10-19 15:16:38 +00:00
65fa944df8 refactor: legacyPackages 2025-10-10 13:13:03 +00:00
7d55064a44 feat(package): onlinepubs: init 2025-10-08 15:58:35 +00:00
7fd3ba46c9 feat(package): sentinèlla: add auth 2025-10-03 02:30:24 +00:00
5dd03a947f feat: appropriate sops dream wrapper 2025-09-12 17:17:29 +00:00
7dadd2290f feat(package): shellplot: created 2025-08-23 16:37:08 +00:00
25575a69f3 feat(package): server-health: created 2025-08-23 15:16:15 +00:00
52cb6b2410 feat(package): nix-derivation-hash 2025-07-23 20:15:53 +00:00
33422320a5 refactor: pull out flake packages 2025-07-17 15:28:29 +00:00