WiseLibs / better-sqlite3

The fastest and simplest library for SQLite3 in Node.js.
MIT License
5.23k stars 390 forks source link

Issue #1021: Expose sqlite3 metadata #1124

Open code-ape opened 6 months ago

code-ape commented 6 months ago

Issues:

  1. 1021

  2. 1122

Changes:

  1. Exposed 49 sqlite3 metadata properties via .metadata property on the addon object, via src/better_sqlite3.lzz and src/better_sqlite3.cpp.
  2. Exposed the above mentioned .metadata property of the addon on the Javascript Database object, via lib/database.js.
  3. Added test to validate that above mentioned sqlite3 metadata 49 properties are as expected, via test/51.metadata.js and test/51.metadata.json.
  4. Added pragma test to validate that compile_options pragma does work for getting other compile time options, via test/12.database.pragma.js.
  5. Added to the download.sh automation script so it updates the test values of test/51.metadata.json whenever it is run, via deps/download.sh and deps/download_update_tests.sh.