Skip to content

feat: add transaction-aware database context - #153

Open
adelrodriguez wants to merge 3 commits into
mainfrom
feat/database-context
Open

feat: add transaction-aware database context#153
adelrodriguez wants to merge 3 commits into
mainfrom
feat/database-context

Conversation

@adelrodriguez

Copy link
Copy Markdown
Collaborator

Summary

  • add an async-local database context with the existing singleton as its fallback
  • add withTransaction so composed domain operations share the active Drizzle transaction
  • add withDatabase for scoped overrides and tests
  • expose the context through @init/db/context
  • cover async isolation, nested context restoration, transaction binding, and nested transaction reuse

Verification

  • bun test packages/db/src/__tests__/context.test.ts
  • bun x tsc -p packages/db/tsconfig.json --noEmit
  • bun x adamantite check packages/db/src/context.ts packages/db/src/__tests__/context.test.ts
  • adamantite monorepo

The full workspace check could not complete locally because unrelated Astro and internationalization code generation requires network resources that were unavailable in the execution environment.

@pullfrog

pullfrog Bot commented Aug 23, 2026

Copy link
Copy Markdown
Contributor

Pullfrog stalled — likely cause: quota error

The agent stopped emitting events for 120s and was killed by the activity-timeout watchdog. 88 events were processed before the failure.

Recent agent stderr
timestamp=2026-08-23T06:17:05.881Z level=ERROR run=82c0aa12 message="stream error" providerID=opencode modelID=claude-opus-5 session.id=ses_fd2bc0cbfffeW2MIvRY6EoY2YW small=false agent=build mode=primary error.error="AI_APICallError: Subscription quota exceeded. Retry in 17hr 43min."

Pullfrog  | Rerun failed job ➔View workflow run | via Pullfrog | Using Claude Opus𝕏

@vercel

vercel Bot commented Aug 23, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

2 Skipped Deployments
Project Deployment Actions Updated (UTC)
init Skipped Skipped Aug 23, 2026 6:16am
init-docs Skipped Skipped Aug 23, 2026 6:16am

Request Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant