@the-situation/indexer 0.18.0 → 0.18.1
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.
|
@@ -8,6 +8,12 @@
|
|
|
8
8
|
*
|
|
9
9
|
* Bun.sql is the project standard (see CLAUDE.md). Do not introduce `pg` or
|
|
10
10
|
* `postgres.js`.
|
|
11
|
+
*
|
|
12
|
+
* Prepared statements are disabled so the same connection works with
|
|
13
|
+
* transaction-mode poolers like pgbouncer (Fly Managed Postgres serves its
|
|
14
|
+
* public endpoint via pgbouncer). The aggregator's hottest path is bulk
|
|
15
|
+
* INSERT and TRUNCATE — neither benefits meaningfully from prepared
|
|
16
|
+
* statements at our scale, so the cost is negligible.
|
|
11
17
|
*/
|
|
12
18
|
import { SQL } from 'bun';
|
|
13
19
|
export interface Warehouse {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connection.d.ts","sourceRoot":"","sources":["../../src/warehouse/connection.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"connection.d.ts","sourceRoot":"","sources":["../../src/warehouse/connection.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,WAAW,SAAS;IACxB,QAAQ,CAAC,GAAG,EAAE,GAAG,CAAC;IAClB,QAAQ,CAAC,KAAK,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CACrC;AAED,wBAAsB,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,CAAC,CAUrE"}
|
|
@@ -8,10 +8,16 @@
|
|
|
8
8
|
*
|
|
9
9
|
* Bun.sql is the project standard (see CLAUDE.md). Do not introduce `pg` or
|
|
10
10
|
* `postgres.js`.
|
|
11
|
+
*
|
|
12
|
+
* Prepared statements are disabled so the same connection works with
|
|
13
|
+
* transaction-mode poolers like pgbouncer (Fly Managed Postgres serves its
|
|
14
|
+
* public endpoint via pgbouncer). The aggregator's hottest path is bulk
|
|
15
|
+
* INSERT and TRUNCATE — neither benefits meaningfully from prepared
|
|
16
|
+
* statements at our scale, so the cost is negligible.
|
|
11
17
|
*/
|
|
12
18
|
import { SQL } from 'bun';
|
|
13
19
|
export async function createWarehouse(url) {
|
|
14
|
-
const sql = new SQL(url);
|
|
20
|
+
const sql = new SQL(url, { prepare: false });
|
|
15
21
|
// Ping to fail fast on bad credentials / unreachable host.
|
|
16
22
|
await sql `SELECT 1`;
|
|
17
23
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connection.js","sourceRoot":"","sources":["../../src/warehouse/connection.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"connection.js","sourceRoot":"","sources":["../../src/warehouse/connection.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAO1B,MAAM,CAAC,KAAK,UAAU,eAAe,CAAC,GAAW;IAC/C,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,GAAG,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,CAAC;IAC7C,2DAA2D;IAC3D,MAAM,GAAG,CAAA,UAAU,CAAC;IACpB,OAAO;QACL,GAAG;QACH,KAAK,EAAE,KAAK,IAAI,EAAE;YAChB,MAAM,GAAG,CAAC,GAAG,EAAE,CAAC;QAClB,CAAC;KACF,CAAC;AACJ,CAAC"}
|