@zukhruf/schema-drift 0.8.308 → 0.8.310

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.
Files changed (2) hide show
  1. package/README.md +14 -14
  2. package/package.json +6 -6
package/README.md CHANGED
@@ -685,20 +685,20 @@ What is in the package now, what comes later, and what never comes:
685
685
 
686
686
  ## Who uses it
687
687
 
688
- zukhruf's own SQLite packages use `./sqlite`. `@zukhruf/checkpoint`, `@zukhruf/embedding-cache`, `@zukhruf/embeddings` and `@zukhruf/event-detection` only check when they open (#2625, #6874). `@zukhruf/sqlite-queue` and `@zukhruf/sqlite-notify` still apply their declaration when they open; they move to check only in #6874. The other moves follow the release, each with its backlog item.
689
-
690
- | Consumer | How | Record |
691
- | --------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------- |
692
- | `@zukhruf/sqlite-queue`, `@zukhruf/sqlite-notify` | `apply(database, { rows: 'keep' })` when the queue or the file opens, so a newer release keeps the jobs and the notifications. | ADR 0006, #6874 |
693
- | `@zukhruf/embeddings`, `@zukhruf/event-detection` | Export `Collection.declaration`, `Collection.cacheDeclaration` and `EventDetector.declaration`, and only check when they open. The host applies the documents and the detector with `rows: 'replace'`, since each row comes again from the caller's documents or reports, and the cache with `rows: 'keep'`. |
694
- | The other importers of `@zukhruf/sqlite-drift` | 24 files move to `@zukhruf/schema-drift/sqlite`: elt 10, context-compiler 6, deepagents 8. `Declaration` becomes `SqliteDeclaration`, `rows` moves from the constructor to `apply`, and `drift(...)` gives a report in place of a string. | ADR 0006 |
695
- | `@zukhruf/checkpoint` | Each of its three stores exports its declaration: `SqliteCheckpointStore.declaration`, `PostgresCheckpointStore.declaration(schema)`, `SqlServerCheckpointStore.declaration(schema)`. Each store only checks when it opens, and the host applies. This supersedes checkpoint ADR 0011's "Async open() creates them". | checkpoint ADR 0011, checkpoint ADR 0014, bfa664ea, #2625 |
696
- | elt-postgresql | Exports the `warehouse` declaration of its fixed tables, views, functions, sequences and schemas, with the `statements` of `PostgresCheckpointStore.declaration('_warehouse')` in it. The hosts apply it at start. | #2625 |
697
- | `@zukhruf/embedding-cache` | Exports `SqliteEmbeddingCacheStore.declaration(table)` and `SqlServerEmbeddingCacheStore.declaration(table)`. The SQLite store checks in its constructor, the SQL Server store in `open`. |
698
- | `@zukhruf/mutex` database lock stores | A named error when the host has not made the objects of the store. | #6875 |
699
- | elt-sqlite, elt-sqlserver, the vectorizer keyword indexes | Declare and export their fixed tables. The hosts apply. | #6877 |
700
- | deepagents stores | Export their declarations and only check when they open. | #6878 |
701
- | context-compiler hosts | Apply the declarations of the stores that they use. | #6879 |
688
+ zukhruf's own SQLite packages use `./sqlite`. `@zukhruf/checkpoint`, `@zukhruf/embedding-cache`, `@zukhruf/embeddings`, `@zukhruf/event-detection`, `@zukhruf/sqlite-queue` and `@zukhruf/sqlite-notify` only check when they open (#2625, #6874). The other moves follow the release, each with its backlog item.
689
+
690
+ | Consumer | How | Record |
691
+ | --------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------- |
692
+ | `@zukhruf/sqlite-queue`, `@zukhruf/sqlite-notify` | Export `SqliteJobQueue.install(database, { rows })`, which also installs notify's tables, and `Notifications.install(database, { rows })`. Each install keeps the release order: a file that records a later release stays as it is. `start()` and the constructor only check. The declarations are not exported, since a host that applied one would record no release. | queue ADR 0010, notify ADR 0014, #6874 |
693
+ | `@zukhruf/embeddings`, `@zukhruf/event-detection` | Export `Collection.declaration`, `Collection.cacheDeclaration` and `EventDetector.declaration`, and only check when they open. The host applies the documents and the detector with `rows: 'replace'`, since each row comes again from the caller's documents or reports, and the cache with `rows: 'keep'`. |
694
+ | The other importers of `@zukhruf/sqlite-drift` | 24 files move to `@zukhruf/schema-drift/sqlite`: elt 10, context-compiler 6, deepagents 8. `Declaration` becomes `SqliteDeclaration`, `rows` moves from the constructor to `apply`, and `drift(...)` gives a report in place of a string. | ADR 0006 |
695
+ | `@zukhruf/checkpoint` | Each of its three stores exports its declaration: `SqliteCheckpointStore.declaration`, `PostgresCheckpointStore.declaration(schema)`, `SqlServerCheckpointStore.declaration(schema)`. Each store only checks when it opens, and the host applies. This supersedes checkpoint ADR 0011's "Async open() creates them". | checkpoint ADR 0011, checkpoint ADR 0014, bfa664ea, #2625 |
696
+ | elt-postgresql | Exports the `warehouse` declaration of its fixed tables, views, functions, sequences and schemas, with the `statements` of `PostgresCheckpointStore.declaration('_warehouse')` in it. The hosts apply it at start. | #2625 |
697
+ | `@zukhruf/embedding-cache` | Exports `SqliteEmbeddingCacheStore.declaration(table)` and `SqlServerEmbeddingCacheStore.declaration(table)`. The SQLite store checks in its constructor, the SQL Server store in `open`. |
698
+ | `@zukhruf/mutex` database lock stores | A named error when the host has not made the objects of the store. | #6875 |
699
+ | elt-sqlite, elt-sqlserver, the vectorizer keyword indexes | Declare and export their fixed tables. The hosts apply. | #6877 |
700
+ | deepagents stores | Export their declarations and only check when they open. | #6878 |
701
+ | context-compiler hosts | Apply the declarations of the stores that they use. | #6879 |
702
702
 
703
703
  ## The same concepts in other systems
704
704
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zukhruf/schema-drift",
3
- "version": "0.8.308",
3
+ "version": "0.8.310",
4
4
  "description": "Declarative schema management for SQLite, Postgres and SQL Server: a package exports the CREATE statements of its objects, the host applies them, and the package checks and throws SchemaDriftError for each missing or stale object.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -61,12 +61,12 @@
61
61
  "access": "public"
62
62
  },
63
63
  "dependencies": {
64
- "@zukhruf/sqlite-open": "^0.8.308",
65
- "@zukhruf/sqlite-transaction": "^0.8.308"
64
+ "@zukhruf/sqlite-open": "^0.8.310",
65
+ "@zukhruf/sqlite-transaction": "^0.8.310"
66
66
  },
67
67
  "devDependencies": {
68
- "@zukhruf/fs": "^0.8.308",
69
- "@zukhruf/parameterized-test": "^0.8.308",
70
- "@zukhruf/testing": "^0.8.308"
68
+ "@zukhruf/fs": "^0.8.310",
69
+ "@zukhruf/parameterized-test": "^0.8.310",
70
+ "@zukhruf/testing": "^0.8.310"
71
71
  }
72
72
  }