@coffre/db 0.14.4 → 0.14.6
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/dist/connect.d.ts +1 -1
- package/dist/{database-CFhTnnzM.d.ts → database-wq1AVRAP.d.ts} +1 -1
- package/dist/dialect.d.ts +1 -1
- package/dist/grants.d.ts +1 -1
- package/dist/hyperdrive.d.ts +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/log.d.ts +27 -1
- package/dist/log.js +50 -1
- package/dist/migrations/postgres/0021_prune_vault_releases.sql +19 -0
- package/dist/migrations/postgres/meta/0021_snapshot.json +3334 -0
- package/dist/migrations/postgres/meta/_journal.json +7 -0
- package/dist/portable.d.ts +2 -2
- package/dist/{schema-z8GcN_Xu.d.ts → schema-BfQEBqFv.d.ts} +3 -2
- package/dist/schema-sqlite.d.ts +2 -2
- package/dist/schema-sqlite.js +2 -2
- package/dist/schema-version.d.ts +1 -1
- package/dist/schema-version.js +7 -0
- package/dist/schema.d.ts +1 -1
- package/dist/schema.js +3 -2
- package/package.json +2 -2
- package/src/log.ts +52 -0
- package/src/migrations/postgres/0021_prune_vault_releases.sql +19 -0
- package/src/migrations/postgres/meta/0021_snapshot.json +3334 -0
- package/src/migrations/postgres/meta/_journal.json +7 -0
- package/src/schema.sqlite.ts +2 -2
- package/src/schema.ts +3 -2
|
@@ -148,6 +148,13 @@
|
|
|
148
148
|
"when": 1793017780802,
|
|
149
149
|
"tag": "0020_vault_releases",
|
|
150
150
|
"breakpoints": true
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"idx": 21,
|
|
154
|
+
"version": "7",
|
|
155
|
+
"when": 1793035191911,
|
|
156
|
+
"tag": "0021_prune_vault_releases",
|
|
157
|
+
"breakpoints": true
|
|
151
158
|
}
|
|
152
159
|
]
|
|
153
160
|
}
|
package/src/schema.sqlite.ts
CHANGED
|
@@ -312,8 +312,8 @@ export const vaultGrants = sqliteTable(
|
|
|
312
312
|
* read them from the entries before (an entry that names none, which only
|
|
313
313
|
* a forged one is, counts as a key of its own, `entry:<seq>`). No login
|
|
314
314
|
* writes it: the vault and the backup read it. A row a window old counts
|
|
315
|
-
* for nothing
|
|
316
|
-
*
|
|
315
|
+
* for nothing: the vault's checkpoint forgets those a day and an hour old,
|
|
316
|
+
* longer than any window, so a count reads about a day of keys.
|
|
317
317
|
*/
|
|
318
318
|
export const vaultReleases = sqliteTable(
|
|
319
319
|
'vault_releases',
|
package/src/schema.ts
CHANGED
|
@@ -330,8 +330,9 @@ export const vaultGrants = pgTable(
|
|
|
330
330
|
* read them from the entries before (an entry that names none, which only
|
|
331
331
|
* a forged one is, counts as a key of its own, `entry:<seq>`). No login
|
|
332
332
|
* writes it: the vault and the backup read it. A row a window old counts
|
|
333
|
-
* for nothing
|
|
334
|
-
*
|
|
333
|
+
* for nothing: the vault's checkpoint forgets those a day and an hour old,
|
|
334
|
+
* longer than any window (`prune_vault_releases`), so a count reads about a
|
|
335
|
+
* day of keys.
|
|
335
336
|
*/
|
|
336
337
|
export const vaultReleases = pgTable(
|
|
337
338
|
'vault_releases',
|