Skip to content

feat(sqlite-plugin): export shared adapter helpers from main package entry#226

Open
Mohamed-kassim wants to merge 2 commits intocallstackincubator:mainfrom
Mohamed-kassim:feat/sqlite-plugin-internals-export
Open

feat(sqlite-plugin): export shared adapter helpers from main package entry#226
Mohamed-kassim wants to merge 2 commits intocallstackincubator:mainfrom
Mohamed-kassim:feat/sqlite-plugin-internals-export

Conversation

@Mohamed-kassim
Copy link
Copy Markdown

@Mohamed-kassim Mohamed-kassim commented Apr 12, 2026

Summary

We’re using react-native-nitro-sqlite with the Rozenite SQLite inspector instead of Expo’s SQLite API. The plugin already contains the SQL normalization, statement classification, bridge param decoding, and error formatting logic we need, but that code wasn’t part of the public package surface, so the practical alternative was to duplicate it in our app.
So we can implement a createSqliteAdapter-compatible driver without copying or reimplementing that pipeline.

Exported symbols: SqlStatementSegment (type), splitSqlStatements, normalizeSingleStatementSql, classifySqlStatement, statementReturnsRows, decodeSqliteBridgeValue, formatSqliteError (from existing src/shared/sql and src/shared/bridge-values).

Question for maintainers

We also have a small adapter that wires react-native-nitro-sqlite into createSqliteAdapter, using these same helpers. Are you open to follow-up PRs that add additional first-party adapters (e.g. Nitro)?

@vercel
Copy link
Copy Markdown

vercel bot commented Apr 12, 2026

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

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
rozenite Skipped Skipped Apr 13, 2026 0:05am

Request Review

Drop ./internals subpath and the extra Vite entry; export shared SQL and
bridge helpers from react-native.ts alongside createSqliteAdapter.

Made-with: Cursor
@Mohamed-kassim Mohamed-kassim changed the title feat(sqlite-plugin): expose shared adapter helpers via ./internals feat(sqlite-plugin): export shared adapter helpers from main package entry Apr 13, 2026
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