Skip to content

Conversation

@crishoj
Copy link

@crishoj crishoj commented Sep 11, 2025

This implements the suggestion in #1:
Use the native declaredTypes property of Statement instead of regex + PRAGMA table_info(...).

Closes #1.
Supersedes #2.

@crishoj
Copy link
Author

crishoj commented Sep 11, 2025

If merging this, the required Bun version in the docs should be adjusted to v1.2.17.

@crishoj
Copy link
Author

crishoj commented Nov 20, 2025

Much to my surprise, benchmarking against the main branch, using declaredTypes does not consistently result in better performance. Will close this PR while investigating.

Apologies for the noise!

@crishoj crishoj closed this Nov 20, 2025
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.

Consider using Bun's native . columnTypes and . declaredTypes

1 participant