src: remove node namespace from sqlite.cc
Remove unnecessary use of node namespace from node_sqlite.cc
CI: https://ci.nodejs.org/job/node-test-pull-request/61349/
CI: https://ci.nodejs.org/job/node-test-pull-request/61352/
Codecov Report
Attention: Patch coverage is 78.78788% with 7 lines in your changes missing coverage. Please review.
Project coverage is 88.25%. Comparing base (
291d90a) to head (18e5be3). Report is 954 commits behind head on main.
| Files with missing lines | Patch % | Lines |
|---|---|---|
| src/node_sqlite.cc | 78.78% | 4 Missing and 3 partials :warning: |
Additional details and impacted files
@@ Coverage Diff @@
## main #54500 +/- ##
==========================================
+ Coverage 88.04% 88.25% +0.21%
==========================================
Files 652 651 -1
Lines 183764 183904 +140
Branches 35862 35863 +1
==========================================
+ Hits 161787 162304 +517
+ Misses 15233 14899 -334
+ Partials 6744 6701 -43
| Files with missing lines | Coverage Ξ | |
|---|---|---|
| src/node_sqlite.h | 0.00% <ΓΈ> (ΓΈ) |
|
| src/node_sqlite.cc | 80.61% <78.78%> (-2.45%) |
:arrow_down: |
@JonasBa can you run the cpp formatter?
CI: https://ci.nodejs.org/job/node-test-pull-request/61399/
CI: https://ci.nodejs.org/job/node-test-pull-request/61431/
PR is currently blocked from landing due to unreliable CI. Likely needs a rebase
This needs a rebase to resolve conflicts.
@lpinca @jasnell rebased the PR.
CI: https://ci.nodejs.org/job/node-test-pull-request/62607/
CI: https://ci.nodejs.org/job/node-test-pull-request/62614/
CI: https://ci.nodejs.org/job/node-test-pull-request/62639/
Related failure on Windows:
stack: "\u25B6 accessing the node:sqlite module\n \u2714 cannot be accessed without\
\ the node: scheme (3.8032ms)\n \u2714 cannot be accessed without --experimental-sqlite\
\ flag (92.0822ms)\n\u25B6 accessing the node:sqlite module (98.3768ms)\n\u2714\
\ ERR_SQLITE_ERROR is thrown for errors originating from SQLite (52.0227ms)\n\u2716\
\ in-memory databases are supported (1.1393ms)\n Error: unable to open database\
\ file\n at TestContext.<anonymous> (c:\\workspace\\node-test-binary-windows-js-suites\\\
node\\test\\parallel\\test-sqlite.js:66:15)\n at Test.runInAsyncScope (node:async_hooks:211:14)\n\
\ at Test.run (node:internal/test_runner/test:930:25)\n at Test.processPendingSubtests\
\ (node:internal/test_runner/test:629:18)\n at Test.postRun (node:internal/test_runner/test:1026:19)\n\
\ at Test.run (node:internal/test_runner/test:969:12)\n at process.processTicksAndRejections\
\ (node:internal/process/task_queues:105:5)\n at async Test.processPendingSubtests\
\ (node:internal/test_runner/test:629:7) {\n code: 'ERR_SQLITE_ERROR',\n errcode:\
\ 14,\n errstr: 'unable to open database file'\n }
Can you fix the linting error?
Can you fix the linting error?
Yes, I'm sorry, still trying to build the muscle to run the linter and formatters π
CI: https://ci.nodejs.org/job/node-test-pull-request/62811/
Related failure on Windows:
not ok 705 parallel/test-sqlite
---
duration_ms: 358.00300
severity: fail
exitcode: 1
stack: |-
βΆ accessing the node:sqlite module
β cannot be accessed without the node: scheme (3.494ms)
β cannot be accessed without --experimental-sqlite flag (93.9584ms)
β accessing the node:sqlite module (99.6248ms)
β ERR_SQLITE_ERROR is thrown for errors originating from SQLite (41.9438ms)
β in-memory databases are supported (1.2068ms)
Error: unable to open database file
at TestContext.<anonymous> (c:\workspace\node-test-binary-windows-js-suites\node\test\parallel\test-sqlite.js:66:15)
at Test.runInAsyncScope (node:async_hooks:211:14)
at Test.run (node:internal/test_runner/test:930:25)
at Test.processPendingSubtests (node:internal/test_runner/test:629:18)
at Test.postRun (node:internal/test_runner/test:1026:19)
at Test.run (node:internal/test_runner/test:969:12)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async Test.processPendingSubtests (node:internal/test_runner/test:629:7) {
code: 'ERR_SQLITE_ERROR',
errcode: 14,
errstr: 'unable to open database file'
}
β PRAGMAs are supported (19.2488ms)
βΉ tests 5
βΉ suites 1
βΉ pass 4
βΉ fail 1
βΉ cancelled 0
βΉ skipped 0
βΉ todo 0
βΉ duration_ms 175.4247
β failing tests:
test at test\parallel\test-sqlite.js:65:1
β in-memory databases are supported (1.2068ms)
Error: unable to open database file
at TestContext.<anonymous> (c:\workspace\node-test-binary-windows-js-suites\node\test\parallel\test-sqlite.js:66:15)
at Test.runInAsyncScope (node:async_hooks:211:14)
at Test.run (node:internal/test_runner/test:930:25)
at Test.processPendingSubtests (node:internal/test_runner/test:629:18)
at Test.postRun (node:internal/test_runner/test:1026:19)
at Test.run (node:internal/test_runner/test:969:12)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async Test.processPendingSubtests (node:internal/test_runner/test:629:7) {
code: 'ERR_SQLITE_ERROR',
errcode: 14,
errstr: 'unable to open database file'
}
(node:956) ExperimentalWarning: SQLite is an experimental feature and might change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
...
@JonasBa do you still want to pursue this? I think at this point all of the changes from this PR have already landed with the exception of the string_view change.
@cjihrig I will close it as the changes from the original intent have landed, thanks for the ping!