Major version update. Major bugfixes. Security vulnerabilites fixed

This commit is contained in:
2026-10-14 03:02:07 +01:00
parent 4e47bd8ce0
commit 7c095f6f16
112 changed files with 2479 additions and 1219 deletions
+11
View File
@@ -0,0 +1,11 @@
import type { CreateDBSchemaParams } from "../../types";
/**
* # Sync the database to the schema
* @description Changed tables are rebuilt by copying into a new table and
* dropping the old one. With foreign keys ON, `DROP TABLE` runs an implicit
* `DELETE FROM` that fires `ON DELETE CASCADE` on child tables, so keys are
* disabled for the sync and checked before committing. (`PRAGMA
* foreign_keys` is a no-op inside a transaction.) With `dry_run` the
* transaction is rolled back, so `changes` is the exact plan.
*/
export default function createDBSchema(params: CreateDBSchemaParams): void;