@dbsp/adapter-pgsql 5.0.0 → 6.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -53,8 +53,8 @@ const { sql, params } = orm.select('users').where(eq('active', true)).dump();
53
53
  - **Parameterized queries** — All user values use `$N` positional parameters; no SQL injection surface
54
54
  - **Identifier quoting** — All table/column/schema names are double-quoted automatically
55
55
  - **AST-based compiler** — SQL is built from the plan AST, never from string templates
56
- - **DDL provisioning** — pure model-to-model `compareSchemata()` + `generateDDL()` with 12-phase topological sort; use live `comparePgsqlDatabaseSchema()` when provisioning from an introspected PostgreSQL database
57
- - **Schema migrations** — `generateMigrationSQL()` with UP/DOWN sections and destructive-change safety gate
56
+ - **DDL provisioning** — build one `PgPhysicalModel` with `createPgPhysicalModel()`, then use pure model-to-model `compareSchemata()` + `generateDDL()` with 12-phase topological sort; use live `comparePgsqlDatabaseSchema()` when provisioning from an introspected PostgreSQL database
57
+ - **Schema migrations** — `generateMigrationSQL()` consumes the physical-model comparison with UP/DOWN sections and destructive-change safety gate
58
58
  - **Schema introspection** — Reflect live database structure back into `ModelIR`
59
59
  - **Row-Level Security** — `rlsEnabled` + `policies[]` on `TableIR`, compiled to `CREATE POLICY` DDL
60
60
  - **Streaming & cursors** — `orm.select(...).stream()` and server-side cursor support