Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

@moll

Description

@moll

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!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions