alpha
Login
or
Join now
solpbc.org
/
aerie
Star
22
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
cloudflare-native port of the tangled knot server
Star
22
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
aerie
/
dbdrv
/
at
main
1 folder
6 files
Jer Miller
dbdrv/testfake: reject bigint binds to guard D1 cutover regression
7w ago
59729917
testfake
dbdrv/testfake: reject bigint binds to guard D1 cutover regression The D1 test fake now rejects i64-tagged bind args outside +/-(2^53-1) with a D1-style D1_TYPE_ERROR/bigint message, mirroring Cloudflare D1 bind behavior for JS BigInt. Add i64_bind_rejected as the regression guard and i64_result_round_trip to keep read-direction coverage explicit. The result-direction i64 encode path remains unchanged. Patch category: aerie-distribution
1 month ago
dbdrv.go
dbdrv/testfake: reject bigint binds to guard D1 cutover regression The D1 test fake now rejects i64-tagged bind args outside +/-(2^53-1) with a D1-style D1_TYPE_ERROR/bigint message, mirroring Cloudflare D1 bind behavior for JS BigInt. Add i64_bind_rejected as the regression guard and i64_result_round_trip to keep read-direction coverage explicit. The result-direction i64 encode path remains unchanged. Patch category: aerie-distribution
1 month ago
dbdrv_test.go
dbdrv: split DriverName from DialectName, add Config The seam separates the database/sql driver name, which is backend-dependent, from the SQL dialect name, which remains sqlite for the casbin adapter. This unblocks landing a non-SQLite backend without forking call sites. Open(path, pragmas...) stays as a thin wrapper so every current caller keeps working unchanged. The parity test asserts Open(path, ...) and OpenConfig(ctx, Config{Backend:"sqlite", Path:path}, ...) produce functionally equivalent DBs. Patch category: upstreamable-core Signed-off-by: Jer Miller <jer@solpbc.org> Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 month ago
driver_cgo.go
aerie/dbdrv: D1 database/sql driver + Worker SQL handler Adds a pure-Go aerie-d1 database/sql driver that ships SQL over HTTP using a self-describing tagged-value JSON envelope. Adds the corresponding Worker-side SQL handler in deploy/cloudflare that decodes the envelope and dispatches against the D1 binding, with worker.js wired via static outboundByHost["aerie.d1"]. 20 named contract tests prove the wire round-trip in-process against a fake handler; a JS-side node --test suite covers the handler against a stub env.DB. L1 lands the contract only. L2 wires call sites through Config; L3 adds the wrangler.toml D1 binding. No call sites change in this lode. Patch category: aerie-distribution Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 month ago
driver_d1.go
dbdrv: log one structured line per D1 round-trip d1Conn.post is the single D1 HTTP chokepoint for exec, query, and batch operations. Emit one Debug record from that path with op, total_ms, and http_status for each client.Do round trip. Thread an optional *slog.Logger through a driver.Connector used by OpenConfig via log.FromContext(ctx). Keep the registered-driver sql.Open path on slog.DiscardHandler so the pure-driver path and the existing 20 contract tests stay silent and dependency-light. Add TestD1PostObservability coverage for captured debug logs, real non-2xx status, and the silent registered-driver path. Patch category: upstreamable-core Signed-off-by: Jer Miller <jer@solpbc.org>
1 month ago
driver_d1_test.go
dbdrv/testfake: reject bigint binds to guard D1 cutover regression The D1 test fake now rejects i64-tagged bind args outside +/-(2^53-1) with a D1-style D1_TYPE_ERROR/bigint message, mirroring Cloudflare D1 bind behavior for JS BigInt. Add i64_bind_rejected as the regression guard and i64_result_round_trip to keep read-direction coverage explicit. The result-direction i64 encode path remains unchanged. Patch category: aerie-distribution
1 month ago
driver_modernc.go
aerie/dbdrv: D1 database/sql driver + Worker SQL handler Adds a pure-Go aerie-d1 database/sql driver that ships SQL over HTTP using a self-describing tagged-value JSON envelope. Adds the corresponding Worker-side SQL handler in deploy/cloudflare that decodes the envelope and dispatches against the D1 binding, with worker.js wired via static outboundByHost["aerie.d1"]. 20 named contract tests prove the wire round-trip in-process against a fake handler; a JS-side node --test suite covers the handler against a stub env.DB. L1 lands the contract only. L2 wires call sites through Config; L3 adds the wrangler.toml D1 binding. No call sites change in this lode. Patch category: aerie-distribution Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 month ago