@absolutejs/vulnerabilities-postgres 0.6.2 → 0.8.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
@@ -15,6 +15,28 @@ const alertPolicies = persistence.alertPolicies;
15
15
  const alertIncidents = persistence.alertIncidents;
16
16
  ```
17
17
 
18
+ Applications already using Drizzle can keep the complete alert lifecycle
19
+ schema-derived:
20
+
21
+ ```ts
22
+ import {
23
+ createDrizzleVulnerabilityAlertStores,
24
+ vulnerabilityAlertDrizzleSchema,
25
+ } from "@absolutejs/vulnerabilities-postgres";
26
+ import { drizzle } from "drizzle-orm/bun-sql";
27
+
28
+ export const schema = {
29
+ ...vulnerabilityAlertDrizzleSchema,
30
+ // ...the rest of your application's tables
31
+ };
32
+ const db = drizzle({ client: sql });
33
+ const { alertIncidents, alertPolicies } =
34
+ createDrizzleVulnerabilityAlertStores(db);
35
+ ```
36
+
37
+ The Drizzle store targets the standard `vulnerability_*` tables. Custom table
38
+ prefixes remain available through `createPostgresVulnerabilityStore`.
39
+
18
40
  The package stores complete provider snapshots and records, appendable sync
19
41
  history, tenant-scoped managed findings, correlation observations, VEX decisions
20
42
  and applications, remediation plans and evidence, risk assessments, immutable