@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.
@@ -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
  }
@@ -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, so nothing prunes them: there are at most as many as
316
- * principals times keys, and a count reads one principal's.
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, so nothing prunes them: there are at most as many as
334
- * principals times keys, and a count reads one principal's.
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',