Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exposing the embedded SQLite3 version number and other compile-time variables #1021

Open
moll opened this issue Jun 14, 2023 · 0 comments
Open

Comments

@moll
Copy link

moll commented Jun 14, 2023

Hey,

Thanks for your continued maintenance of Better-SQLite3! Have you considered exposing some of the compile-time variables as properties on the primary export? I've got a need to identify the SQLite3 version and SQLITE_MAX_VARIABLE_NUMBER/SQLITE_LIMIT_VARIABLE_NUMBER to adjust some queries. The former is possible to get via sqlite_version(), but that's only at runtime via initializing a database. The latter isn't possible to query at runtime AFAICT.

Mapbox/Ghost's SQLite3 seems to provide those constants in https://github.com/TryGhost/node-sqlite3/blob/master/src/node_sqlite3.cc#L23. Perhaps Better SQLite3 could, too?

Thanks!

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

No branches or pull requests

2 participants