@coffre/db 0.11.0 → 0.12.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/dist/connect.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { t as Database } from "./database-Dh4W2pAj.js";
1
+ import { t as Database } from "./database-Ds1Y79h6.js";
2
2
  import { Engine } from "./dialect.js";
3
3
  import { ClientConfig } from "pg";
4
4
  //#region src/postgres.d.ts
@@ -1,4 +1,4 @@
1
- import { h as schema_d_exports } from "./schema-DG2t57Kf.js";
1
+ import { g as schema_d_exports } from "./schema-DcVkJhCf.js";
2
2
  import { Query, Table } from "drizzle-orm";
3
3
  import { NodePgDatabase } from "drizzle-orm/node-postgres";
4
4
  import pg from "pg";
package/dist/dialect.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { i as Queryable } from "./database-Dh4W2pAj.js";
1
+ import { i as Queryable } from "./database-Ds1Y79h6.js";
2
2
  import { SQL, SQLWrapper } from "drizzle-orm";
3
3
  import { PgTable } from "drizzle-orm/pg-core";
4
4
  //#region src/dialect.d.ts
package/dist/grants.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { i as Queryable } from "./database-Dh4W2pAj.js";
1
+ import { i as Queryable } from "./database-Ds1Y79h6.js";
2
2
  import { Authenticity, Newest } from "./log.js";
3
3
  import { StoredEntry } from "@coffre/core/audit";
4
4
  import { Conversion, ConversionInput, InstanceRole, Scope } from "@coffre/core/access";
@@ -1,4 +1,4 @@
1
- import { n as PoolLike } from "./database-Dh4W2pAj.js";
1
+ import { n as PoolLike } from "./database-Ds1Y79h6.js";
2
2
  import pg from "pg";
3
3
  //#region src/hyperdrive.d.ts
4
4
  /** Postgres through a Hyperdrive binding: `postgres(env.HYPERDRIVE)`. */
package/dist/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- import { h as schema_d_exports } from "./schema-DG2t57Kf.js";
2
- import { a as Transaction, c as tablesOf, i as Queryable, l as prepared, n as PoolLike, o as createDatabase, r as QueryOutsideTransaction, s as own, t as Database } from "./database-Dh4W2pAj.js";
1
+ import { g as schema_d_exports } from "./schema-DcVkJhCf.js";
2
+ import { a as Transaction, c as tablesOf, i as Queryable, l as prepared, n as PoolLike, o as createDatabase, r as QueryOutsideTransaction, s as own, t as Database } from "./database-Ds1Y79h6.js";
3
3
  export { Database, PoolLike, QueryOutsideTransaction, Queryable, Transaction, createDatabase, own, prepared, schema_d_exports as schema, tablesOf };
package/dist/log.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { a as Transaction, i as Queryable } from "./database-Dh4W2pAj.js";
1
+ import { a as Transaction, i as Queryable } from "./database-Ds1Y79h6.js";
2
2
  import { Placeholder, SQL } from "drizzle-orm";
3
3
  import { LogKey, StoredEntry } from "@coffre/core/audit";
4
4
  //#region src/log.d.ts
@@ -0,0 +1,10 @@
1
+ -- Capped alerts (T98): when a service's sign-in was last refused `unknown_key` with an alert, so that the next alerts an hour later at the soonest, whichever isolate sees it. It only adds: the release before neither reads nor writes it.
2
+ CREATE TABLE "capped_alerts" (
3
+ "service" text NOT NULL,
4
+ "kind" text NOT NULL,
5
+ "raised_at" timestamp with time zone NOT NULL,
6
+ CONSTRAINT "capped_alerts_pkey" PRIMARY KEY("service","kind")
7
+ );
8
+ --> statement-breakpoint
9
+ -- The app moves a row's time on, and deletes none.
10
+ GRANT SELECT, INSERT, UPDATE (raised_at) ON capped_alerts TO coffre_app;