Skip to content

feat: expose native driver failures through public modules - #529

Merged
medz merged 1 commit into
mainfrom
feat/native-driver-errors
Oct 9, 2026
Merged

medz merged 1 commit into
mainfrom
feat/native-driver-errors

Conversation

@medz

@medz medz commented Oct 9, 2026

Copy link
Copy Markdown
Owner

Refs #516

Driver exceptions already propagated unchanged, but ORM consumers could not name them through the public driver modules. Re-export PostgreSQL's native error types and SQLite's exception, primary-code constants and extended-code constants through each module's implementation and explicit public entrypoint.

Applications can catch native failures outside a transaction using only ORM public imports. SQLSTATE, severity, table/constraint metadata and SQLite result codes retain their native meanings. Expected registration conflicts still use createIfAbsent with an explicit target. Standard TimeoutException stays in dart:async; no wrapper, error remapping or retry behavior is added.

Validation: twenty live SQLite/PostgreSQL business tests pass and analysis is clean. Two new cases provoke unique and missing-parent failures, check the actual public types/codes, verify an earlier write rolls back and confirm subsequent root queries remain usable. The independent archive consumer now compiles all eight native symbols from ORM-only dependencies and repeats those real rollback checks. Model generation and reviewed migration definitions/fingerprints are unchanged.

@netlify

netlify Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for prisma-dart canceled.

Name Link
🔨 Latest commit c1a43b9
🔍 Latest deploy log https://app.netlify.com/projects/prisma-dart/deploys/6ac89b28165f1b0008c9e3f8

@coderabbitai

coderabbitai Bot commented Oct 9, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 37 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 2 included reviews currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 6beaf558-fff0-48c9-966c-89b324556af0
📥 Commits

Reviewing files that changed from the base of the PR and between 59c1759 and c1a43b9.

📒 Files selected for processing (8)
  • doc/README.md
  • lib/postgres.dart
  • lib/sqlite.dart
  • lib/src/postgres/driver.dart
  • lib/src/sqlite/driver.dart
  • test/business_test.dart
  • test/migration_postgres_test.dart
  • tool/check_package.dart
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-09T07:45:24.565249Z c1a43b9 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@medz
medz merged commit ade3d9c into main Oct 9, 2026
6 checks passed
@medz
medz deleted the feat/native-driver-errors branch October 9, 2026 08:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant