Commit Graph

11 Commits

Author SHA1 Message Date
seb
cca131d83a sqlite 2026-09-22 07:25:16 +02:00
seb
53a20c4353 refactor: introduce database provider abstraction, isolate MSSQL layer
- Add provider contract (src/providers/provider.js): query() -> {rows,
  rowsAffected, insertId}, callback transaction(fn), exec() for stored
  procs, initialize/purge lifecycle
- Add MssqlProvider (src/providers/mssql/index.js) wrapping an mssql
  ConnectionPool with normalized results, tx commit/rollback and
  constraint-error classifiers (unique 2627/2601, FK 547)
- LibDashStore constructor now takes a provider instead of a pool
  (breaking); adds LibDashStore.create() async factory; keeps pool as
  transitional bridge until store modules are converted (see TODO.md)
- Move MSSQL-specific code into the provider: src/sql/* ->
  src/providers/mssql/queries/*, src/schema.js ->
  src/providers/mssql/schema.js, purge SQL -> purgeSql.js
- Update scripts, generate-schema-graph.js and package.json exports
  (./providers/mssql, ./providers/provider)
- Add TODO.md with the remaining provider/SQLite migration plan

No SQL or behavioral changes.
2026-09-20 13:51:01 +02:00
seb
8a6f724ec5 u 2026-09-20 07:46:07 +02:00
seb
b20803eda0 mssql 2026-09-20 07:23:26 +02:00
seb
b69110f1c2 fllabcks hmmm 2026-09-18 08:28:44 +02:00
seb
bac6f2a801 u 2026-09-18 07:13:56 +02:00
seb
9e9d3154ca file meta 2026-09-18 05:19:47 +02:00
seb
e3d30b296b feat: add size, created, and modified columns to file table and manifestattachment APIs 2026-09-18 01:45:27 +02:00
seb
cfb7f86f0e feat: add hash and thumbnail columns to file, sort column and order method to manifestattachment 2026-09-18 01:21:54 +02:00
seb
5a7773df79 docs: expand input and output object types in API signatures 2026-09-16 17:45:46 +02:00
seb
8f23dd8c75 feat: manage files via manifestattachment with auth and cascade trigger, format API.md method signatures 2026-09-16 16:49:59 +02:00