Skip to content

sqlite, test: add support for readBigInts option in db connection level#6

Closed
miguelmarcondesf wants to merge 1 commit into
mainfrom
readbigints-sqlite
Closed

sqlite, test: add support for readBigInts option in db connection level#6
miguelmarcondesf wants to merge 1 commit into
mainfrom
readbigints-sqlite

Conversation

@miguelmarcondesf

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request adds support for a new readBigInts option on the database connection level, allowing the caller to choose whether big integers are returned as BigInts or as numbers.

  • Adds validation for the readBigInts option in the DatabaseSync constructor
  • Updates tests to verify behavior when readBigInts is given as a boolean and when it is not
  • Introduces new getter/setter methods in the configuration and propagates the setting to statement objects

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
test/parallel/test-sqlite-database-sync.js Added tests validating error behavior and supporting functionality for readBigInts
src/node_sqlite.h Introduced new inline methods for setting/getting the use_big_ints flag in the database configuration
src/node_sqlite.cc Updated DatabaseSync constructor to handle the readBigInts option and propagate its value to StatementSync

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.

2 participants