@zukhruf/schema-drift 0.8.309 → 0.8.311
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 +14 -14
- 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
|
|
689
|
-
|
|
690
|
-
| Consumer | How
|
|
691
|
-
| --------------------------------------------------------- |
|
|
692
|
-
| `@zukhruf/sqlite-queue`, `@zukhruf/sqlite-notify` | `
|
|
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.
|
|
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".
|
|
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.
|
|
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.
|
|
699
|
-
| elt-sqlite, elt-sqlserver, the vectorizer keyword indexes | Declare and export their fixed tables. The hosts apply.
|
|
700
|
-
| deepagents stores | Export their declarations and only check when they open.
|
|
701
|
-
| context-compiler hosts | Apply the declarations of the stores that they use.
|
|
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.
|
|
3
|
+
"version": "0.8.311",
|
|
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.
|
|
65
|
-
"@zukhruf/sqlite-transaction": "^0.8.
|
|
64
|
+
"@zukhruf/sqlite-open": "^0.8.311",
|
|
65
|
+
"@zukhruf/sqlite-transaction": "^0.8.311"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
|
-
"@zukhruf/fs": "^0.8.
|
|
69
|
-
"@zukhruf/parameterized-test": "^0.8.
|
|
70
|
-
"@zukhruf/testing": "^0.8.
|
|
68
|
+
"@zukhruf/fs": "^0.8.311",
|
|
69
|
+
"@zukhruf/parameterized-test": "^0.8.311",
|
|
70
|
+
"@zukhruf/testing": "^0.8.311"
|
|
71
71
|
}
|
|
72
72
|
}
|