@quickback-dev/cli 0.70.7 → 0.70.10
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/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/skill/docs/platform/database/neon.md +66 -8
- package/dist/skill/docs/platform/database/planetscale-postgres.md +7 -2
- package/package.json +1 -1
- package/src/skill/docs/platform/database/neon.md +66 -8
- package/src/skill/docs/platform/database/planetscale-postgres.md +7 -2
package/dist/index.js
CHANGED
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA;;;;;;;;GAQG;AAEH,OAAO,EAAE,MAAM,YAAY,CAAC;AAE5B,8DAA8D;AAC9D,MAAM,WAAW,GAAG,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA;;;;;;;;GAQG;AAEH,OAAO,EAAE,MAAM,YAAY,CAAC;AAE5B,8DAA8D;AAC9D,MAAM,WAAW,GAAG,SAAS,CAAC;AAE9B,SAAS,iBAAiB;IACtB,OAAO,WAAW,CAAC;AACvB,CAAC;AAED,4BAA4B;AAC5B,SAAS,YAAY;IACjB,MAAM,OAAO,GAAG,iBAAiB,EAAE,CAAC;IACpC,OAAO,CAAC,GAAG,CAAC,mBAAmB,OAAO,EAAE,CAAC,CAAC;AAC9C,CAAC;AAED,aAAa;AACb,MAAM,IAAI,GAAG;;;;;;;;;;;;;CAaZ,CAAC;AAEF,yBAAyB;AACzB,SAAS,SAAS;IACd,MAAM,OAAO,GAAG,iBAAiB,EAAE,CAAC;IACpC,MAAM,IAAI,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC;IAC7B,EAAE,CAAC,IAAI,CAAC,eAAe,CAAC;;EAE1B,EAAE,CAAC,IAAI,CAAC,eAAe,CAAC,KAAK,OAAO;;EAEpC,E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AG,KAAK,aAAa,IAAI,GAAG,KAAK,YAAY,IAAI,GAAG,KAAK,WAAW,EAAE,CAAC;IAC9E,mEAAmE;IACnE,mEAAmE;IACnE,wEAAwE;IACxE,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,MAAM,CAAC,UAAU,GAAG,gCAAgC,CAAC,CAAC,CAAC;IACtE,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,+CAA+C,CAAC,CAAC,CAAC;IACtE,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,qDAAqD,CAAC,CAAC,CAAC;IAC5E,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,kDAAkD,CAAC,CAAC,CAAC;IACzE,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,sDAAsD,CAAC,CAAC,CAAC;IAC7E,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IAChB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACpB,CAAC;KAAM,CAAC;IACJ,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC,GAAG,CAAC,oBAAoB,GAAG,EAAE,CAAC,CAAC,CAAC;IACjD,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,kDAAkD,CAAC,CAAC,CAAC;IACzE,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACpB,CAAC"}
|
|
@@ -1257,14 +1257,38 @@ named prepared statements; an unprepared statement costs an extra
|
|
|
1257
1257
|
parameter-describe round trip) and type-fetch round trips are skipped;
|
|
1258
1258
|
Hyperdrive owns the origin pool.
|
|
1259
1259
|
|
|
1260
|
-
Every
|
|
1261
|
-
connection: `BEGIN` plus the claims preamble travel as one message, then
|
|
1262
|
-
statement, then `COMMIT`, all written before anything is awaited. That is
|
|
1263
|
-
round trip once the statement is prepared on that connection and three
|
|
1264
|
-
is cold — down from six. It fails closed by construction: a preamble
|
|
1265
|
-
errors after `BEGIN` aborts the transaction so the statement is refused
|
|
1266
|
-
than run unscoped, and a failed statement turns the pipelined `COMMIT`
|
|
1267
|
-
`ROLLBACK`.
|
|
1260
|
+
Every **write** statement runs as one **pipelined claims transaction** on a
|
|
1261
|
+
leased connection: `BEGIN` plus the claims preamble travel as one message, then
|
|
1262
|
+
the statement, then `COMMIT`, all written before anything is awaited. That is
|
|
1263
|
+
one round trip once the statement is prepared on that connection and three
|
|
1264
|
+
while it is cold — down from six. It fails closed by construction: a preamble
|
|
1265
|
+
that errors after `BEGIN` aborts the transaction so the statement is refused
|
|
1266
|
+
rather than run unscoped, and a failed statement turns the pipelined `COMMIT`
|
|
1267
|
+
into `ROLLBACK`.
|
|
1268
|
+
|
|
1269
|
+
**Reads share one transaction per connection.** The first read-only statement
|
|
1270
|
+
on a leased connection opens `BEGIN READ ONLY` plus the claims preamble and
|
|
1271
|
+
leaves that transaction open; every later read on the same connection with the
|
|
1272
|
+
same claims runs bare, one round trip, with no `BEGIN`/`COMMIT` around it. A
|
|
1273
|
+
read under different claims (a service-lane lookup between caller reads, a
|
|
1274
|
+
scope minted mid-request) re-stamps the preamble inside the open transaction —
|
|
1275
|
+
`set_config(…, true)` is transaction-local, so the previous claims are gone the
|
|
1276
|
+
moment the new ones land. The read lane is rolled back before a write or a
|
|
1277
|
+
`db.transaction()` takes the connection, after any read error, and when the
|
|
1278
|
+
invocation scope closes the pool; a `SELECT` the server refuses inside a
|
|
1279
|
+
read-only transaction (`nextval()`, a volatile function that writes) falls back
|
|
1280
|
+
to the write lane automatically. Only statements that begin with `SELECT` or a
|
|
1281
|
+
non-modifying `WITH` and carry no `FOR UPDATE` / `FOR SHARE` qualify; anything
|
|
1282
|
+
else is a write.
|
|
1283
|
+
|
|
1284
|
+
Each read sees everything committed before it, including the request's own
|
|
1285
|
+
writes — Postgres runs `READ COMMITTED` by default, and a read-only transaction
|
|
1286
|
+
changes nothing about that. The open lane pins its Hyperdrive origin connection
|
|
1287
|
+
for the invocation; `idle_in_transaction_session_timeout` (15 s on the deployed
|
|
1288
|
+
role) and the scope close bound the worst case. A ten-statement read path costs
|
|
1289
|
+
about eleven round trips instead of thirteen to thirty-four, which is where the
|
|
1290
|
+
`tx` versus `stmts` ratio in [`Server-Timing`](#measuring-database-cost-server-timing)
|
|
1291
|
+
comes from.
|
|
1268
1292
|
|
|
1269
1293
|
The pool closes when the invocation ends, after its `waitUntil` work
|
|
1270
1294
|
(deferred audit writes, after-commit effects) settles. A client that is never
|
|
@@ -1273,6 +1297,40 @@ connections until Postgres times them out. Code outside an invocation — a
|
|
|
1273
1297
|
Durable Object, a test — gets a fresh pool per `createDb` call and owns
|
|
1274
1298
|
closing it.
|
|
1275
1299
|
|
|
1300
|
+
### Measuring database cost: `Server-Timing`
|
|
1301
|
+
|
|
1302
|
+
Every response from a Hyperdrive project carries a
|
|
1303
|
+
[`Server-Timing`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Server-Timing)
|
|
1304
|
+
header, and the Worker logs one structured line per request with the same
|
|
1305
|
+
fields plus the matched route pattern:
|
|
1306
|
+
|
|
1307
|
+
```
|
|
1308
|
+
Server-Timing: total;dur=312.6, db;dur=212.4;desc="stmts=11 tx=2 cold=1", gate;dur=31, action;dur=240.8
|
|
1309
|
+
```
|
|
1310
|
+
|
|
1311
|
+
```json
|
|
1312
|
+
{"event":"request.timing","requestId":"…","method":"POST","route":"/api/v1/tasks/:id/approve","status":200,"totalMs":312.6,"dbMs":212.4,"stmts":11,"tx":2,"cold":1,"gateMs":31,"actionMs":240.8}
|
|
1313
|
+
```
|
|
1314
|
+
|
|
1315
|
+
| Field | Meaning |
|
|
1316
|
+
|-------|---------|
|
|
1317
|
+
| `total` | Wall time from the request-id middleware to the response |
|
|
1318
|
+
| `db` | Time statements held a leased connection, summed. Statements that run concurrently (`Promise.all`) each count in full, so `db` can exceed the time the request actually spent waiting |
|
|
1319
|
+
| `stmts` | Statements run, including those inside `db.transaction()` |
|
|
1320
|
+
| `tx` | Claims transactions opened (one per statement, one per `db.transaction()`) |
|
|
1321
|
+
| `cold` | Connections the lease pool had to open for this invocation |
|
|
1322
|
+
| `gate` / `action` | Action routes only: the generated pre-action pipeline (auth, access, firewall pre-reads, input validation) vs. the action's `execute` body |
|
|
1323
|
+
|
|
1324
|
+
Statement text and parameters are never logged. Work the invocation defers to
|
|
1325
|
+
`waitUntil` (audit writes, after-commit effects) runs after the header is sent
|
|
1326
|
+
and is not counted.
|
|
1327
|
+
|
|
1328
|
+
The header and log line are on by default. Set the Wrangler var
|
|
1329
|
+
`SERVER_TIMING = "0"` on a target (for example in `environments.production.vars`)
|
|
1330
|
+
to turn both off there. Aggregate p50 / p95 by `route` with `wrangler tail` or
|
|
1331
|
+
Workers Logs to find the endpoints where round trips, not the statements
|
|
1332
|
+
themselves, are the cost.
|
|
1333
|
+
|
|
1276
1334
|
> Postgres authorizes `SELECT … FOR UPDATE` as both a read and a write: the row
|
|
1277
1335
|
> must pass its `SELECT` **and** `UPDATE` policies. This matters for delegated
|
|
1278
1336
|
> principals because a lane that declares only `databaseAccess.select` emits a
|
|
@@ -153,9 +153,14 @@ binding = "HYPERDRIVE"
|
|
|
153
153
|
id = "ffffffffffffffffffffffffffffffff"
|
|
154
154
|
```
|
|
155
155
|
|
|
156
|
-
Each Worker invocation shares one
|
|
157
|
-
|
|
156
|
+
Each Worker invocation shares one lease pool across every database handle it
|
|
157
|
+
opens, keeps one read-only claims transaction open per leased connection for
|
|
158
|
+
its reads, and closes everything when the invocation ends — see
|
|
158
159
|
[Neon → Interactive transactions](/platform/database/neon#interactive-transactions) for the details.
|
|
160
|
+
Every response carries a `Server-Timing` header with the invocation's statement
|
|
161
|
+
count, claims transactions, cold connections and summed database time, and the
|
|
162
|
+
Worker logs one `request.timing` line per request — see
|
|
163
|
+
[Measuring database cost](/platform/database/neon#measuring-database-cost-server-timing).
|
|
159
164
|
|
|
160
165
|
## No `DATABASE_URL` Worker secret
|
|
161
166
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quickback-dev/cli",
|
|
3
|
-
"version": "0.70.
|
|
3
|
+
"version": "0.70.10",
|
|
4
4
|
"description": "CLI for Quickback — define your backend in TypeScript, compile to a fully wired Cloudflare Worker (or Bun / Node) with auth, database, migrations, security, CMS, and Account UI.",
|
|
5
5
|
"author": "Kardoe Incorporated <paul@kardoe.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -1257,14 +1257,38 @@ named prepared statements; an unprepared statement costs an extra
|
|
|
1257
1257
|
parameter-describe round trip) and type-fetch round trips are skipped;
|
|
1258
1258
|
Hyperdrive owns the origin pool.
|
|
1259
1259
|
|
|
1260
|
-
Every
|
|
1261
|
-
connection: `BEGIN` plus the claims preamble travel as one message, then
|
|
1262
|
-
statement, then `COMMIT`, all written before anything is awaited. That is
|
|
1263
|
-
round trip once the statement is prepared on that connection and three
|
|
1264
|
-
is cold — down from six. It fails closed by construction: a preamble
|
|
1265
|
-
errors after `BEGIN` aborts the transaction so the statement is refused
|
|
1266
|
-
than run unscoped, and a failed statement turns the pipelined `COMMIT`
|
|
1267
|
-
`ROLLBACK`.
|
|
1260
|
+
Every **write** statement runs as one **pipelined claims transaction** on a
|
|
1261
|
+
leased connection: `BEGIN` plus the claims preamble travel as one message, then
|
|
1262
|
+
the statement, then `COMMIT`, all written before anything is awaited. That is
|
|
1263
|
+
one round trip once the statement is prepared on that connection and three
|
|
1264
|
+
while it is cold — down from six. It fails closed by construction: a preamble
|
|
1265
|
+
that errors after `BEGIN` aborts the transaction so the statement is refused
|
|
1266
|
+
rather than run unscoped, and a failed statement turns the pipelined `COMMIT`
|
|
1267
|
+
into `ROLLBACK`.
|
|
1268
|
+
|
|
1269
|
+
**Reads share one transaction per connection.** The first read-only statement
|
|
1270
|
+
on a leased connection opens `BEGIN READ ONLY` plus the claims preamble and
|
|
1271
|
+
leaves that transaction open; every later read on the same connection with the
|
|
1272
|
+
same claims runs bare, one round trip, with no `BEGIN`/`COMMIT` around it. A
|
|
1273
|
+
read under different claims (a service-lane lookup between caller reads, a
|
|
1274
|
+
scope minted mid-request) re-stamps the preamble inside the open transaction —
|
|
1275
|
+
`set_config(…, true)` is transaction-local, so the previous claims are gone the
|
|
1276
|
+
moment the new ones land. The read lane is rolled back before a write or a
|
|
1277
|
+
`db.transaction()` takes the connection, after any read error, and when the
|
|
1278
|
+
invocation scope closes the pool; a `SELECT` the server refuses inside a
|
|
1279
|
+
read-only transaction (`nextval()`, a volatile function that writes) falls back
|
|
1280
|
+
to the write lane automatically. Only statements that begin with `SELECT` or a
|
|
1281
|
+
non-modifying `WITH` and carry no `FOR UPDATE` / `FOR SHARE` qualify; anything
|
|
1282
|
+
else is a write.
|
|
1283
|
+
|
|
1284
|
+
Each read sees everything committed before it, including the request's own
|
|
1285
|
+
writes — Postgres runs `READ COMMITTED` by default, and a read-only transaction
|
|
1286
|
+
changes nothing about that. The open lane pins its Hyperdrive origin connection
|
|
1287
|
+
for the invocation; `idle_in_transaction_session_timeout` (15 s on the deployed
|
|
1288
|
+
role) and the scope close bound the worst case. A ten-statement read path costs
|
|
1289
|
+
about eleven round trips instead of thirteen to thirty-four, which is where the
|
|
1290
|
+
`tx` versus `stmts` ratio in [`Server-Timing`](#measuring-database-cost-server-timing)
|
|
1291
|
+
comes from.
|
|
1268
1292
|
|
|
1269
1293
|
The pool closes when the invocation ends, after its `waitUntil` work
|
|
1270
1294
|
(deferred audit writes, after-commit effects) settles. A client that is never
|
|
@@ -1273,6 +1297,40 @@ connections until Postgres times them out. Code outside an invocation — a
|
|
|
1273
1297
|
Durable Object, a test — gets a fresh pool per `createDb` call and owns
|
|
1274
1298
|
closing it.
|
|
1275
1299
|
|
|
1300
|
+
### Measuring database cost: `Server-Timing`
|
|
1301
|
+
|
|
1302
|
+
Every response from a Hyperdrive project carries a
|
|
1303
|
+
[`Server-Timing`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Server-Timing)
|
|
1304
|
+
header, and the Worker logs one structured line per request with the same
|
|
1305
|
+
fields plus the matched route pattern:
|
|
1306
|
+
|
|
1307
|
+
```
|
|
1308
|
+
Server-Timing: total;dur=312.6, db;dur=212.4;desc="stmts=11 tx=2 cold=1", gate;dur=31, action;dur=240.8
|
|
1309
|
+
```
|
|
1310
|
+
|
|
1311
|
+
```json
|
|
1312
|
+
{"event":"request.timing","requestId":"…","method":"POST","route":"/api/v1/tasks/:id/approve","status":200,"totalMs":312.6,"dbMs":212.4,"stmts":11,"tx":2,"cold":1,"gateMs":31,"actionMs":240.8}
|
|
1313
|
+
```
|
|
1314
|
+
|
|
1315
|
+
| Field | Meaning |
|
|
1316
|
+
|-------|---------|
|
|
1317
|
+
| `total` | Wall time from the request-id middleware to the response |
|
|
1318
|
+
| `db` | Time statements held a leased connection, summed. Statements that run concurrently (`Promise.all`) each count in full, so `db` can exceed the time the request actually spent waiting |
|
|
1319
|
+
| `stmts` | Statements run, including those inside `db.transaction()` |
|
|
1320
|
+
| `tx` | Claims transactions opened (one per statement, one per `db.transaction()`) |
|
|
1321
|
+
| `cold` | Connections the lease pool had to open for this invocation |
|
|
1322
|
+
| `gate` / `action` | Action routes only: the generated pre-action pipeline (auth, access, firewall pre-reads, input validation) vs. the action's `execute` body |
|
|
1323
|
+
|
|
1324
|
+
Statement text and parameters are never logged. Work the invocation defers to
|
|
1325
|
+
`waitUntil` (audit writes, after-commit effects) runs after the header is sent
|
|
1326
|
+
and is not counted.
|
|
1327
|
+
|
|
1328
|
+
The header and log line are on by default. Set the Wrangler var
|
|
1329
|
+
`SERVER_TIMING = "0"` on a target (for example in `environments.production.vars`)
|
|
1330
|
+
to turn both off there. Aggregate p50 / p95 by `route` with `wrangler tail` or
|
|
1331
|
+
Workers Logs to find the endpoints where round trips, not the statements
|
|
1332
|
+
themselves, are the cost.
|
|
1333
|
+
|
|
1276
1334
|
> Postgres authorizes `SELECT … FOR UPDATE` as both a read and a write: the row
|
|
1277
1335
|
> must pass its `SELECT` **and** `UPDATE` policies. This matters for delegated
|
|
1278
1336
|
> principals because a lane that declares only `databaseAccess.select` emits a
|
|
@@ -153,9 +153,14 @@ binding = "HYPERDRIVE"
|
|
|
153
153
|
id = "ffffffffffffffffffffffffffffffff"
|
|
154
154
|
```
|
|
155
155
|
|
|
156
|
-
Each Worker invocation shares one
|
|
157
|
-
|
|
156
|
+
Each Worker invocation shares one lease pool across every database handle it
|
|
157
|
+
opens, keeps one read-only claims transaction open per leased connection for
|
|
158
|
+
its reads, and closes everything when the invocation ends — see
|
|
158
159
|
[Neon → Interactive transactions](/platform/database/neon#interactive-transactions) for the details.
|
|
160
|
+
Every response carries a `Server-Timing` header with the invocation's statement
|
|
161
|
+
count, claims transactions, cold connections and summed database time, and the
|
|
162
|
+
Worker logs one `request.timing` line per request — see
|
|
163
|
+
[Measuring database cost](/platform/database/neon#measuring-database-cost-server-timing).
|
|
159
164
|
|
|
160
165
|
## No `DATABASE_URL` Worker secret
|
|
161
166
|
|