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

The new node-oracledb release with Thin mode is coming soon! #1550

Closed
sharadraju opened this issue May 9, 2023 · 10 comments
Closed

The new node-oracledb release with Thin mode is coming soon! #1550

sharadraju opened this issue May 9, 2023 · 10 comments
Assignees

Comments

@sharadraju
Copy link
Member

sharadraju commented May 9, 2023

Hey, We are wrapping up our next release of node-oracledb and boy, have we got something exciting coming soon for you! A 1-step install, 1 MB footprint, and no Oracle Instant Client libraries needed!
Stay tuned to my blog: https://medium.com/@sharad-chandran for more!
Here is a sneak peek of what I tried:
SimpleQuery2

@sharadraju sharadraju self-assigned this May 9, 2023
@sosoba
Copy link

sosoba commented May 9, 2023

Hello. I suggest you consider a parallel release of lightweight the thin-only package.
Since npm-cli supports aliases, there is no problem with multiple variants of a common api.

npm install oracledb@npm:oracledb-thin-only
import {getConnection} from 'oracledb';

@cjbj
Copy link
Member

cjbj commented May 9, 2023

@sosoba thanks for the suggestion. In the short term, you will be able to run npm run prune all post install to remove all the thick mode binaries, letting you use Thin mode. https://github.com/oracle/node-oracledb/blob/main/package/prunebinaries.js

@liudonghua123
Copy link

Hello. I suggest you consider a parallel release of lightweight the thin-only package. Since npm-cli supports aliases, there is no problem with multiple variants of a common api.

npm install oracledb@npm:oracledb-thin-only
import {getConnection} from 'oracledb';

This thin mode node-oracledb seems not publish yet.

D:\code\node\oracle_db_test>yarn add oracledb@npm:oracledb-thin-only
yarn add v1.22.17
info No lockfile found.
[1/4] Resolving packages...
error An unexpected error occurred: "https://registry.npmjs.org/oracledb-thin-only: Not found".
info If you think this is a bug, please open a bug report with the information provided in "D:\\code\\node\\oracle_db_test\\yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.

D:\code\node\oracle_db_test>npm install oracledb@npm:oracledb-thin-only
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/oracledb-thin-only - Not found
npm ERR! 404
npm ERR! 404  'oracledb-thin-only@*' is not in this registry.
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Liu.D.H\AppData\Local\npm-cache\_logs\2023-05-10T04_57_27_136Z-debug-0.log

D:\code\node\oracle_db_test>

@cjbj
Copy link
Member

cjbj commented May 10, 2023

@liudonghua123 the title of this announcement was 'is coming soon' !

Also the syntax you used was a suggestion by @sosoba and won't be the one to use at the time of release.

@jimji1005
Copy link

amazing! finally going to be able to ditch my intel 'soon' 👍🏻

@yasirharis
Copy link

yasirharis commented May 11, 2023

good job @cjbj @sharadraju . Finally I can remove extra steps and files when using this package.

@kuldeepsinghkarki
Copy link

Hi @sharadraju, eagerly waiting for this release as I am on Apple Silicon.
Any tentative dates for the same please as it will help me to schedule my dev plans.

@liudonghua123
Copy link

any news about this feature? 😄

@sharadraju
Copy link
Member Author

@liudonghua123 @kuldeepsinghkarki All I can say is that we are in the process of wrapping up! Stay tuned to this GitHub repo / https://medium.com/@sharad-chandran these upcoming days for more updates ;)

@cjbj
Copy link
Member

cjbj commented May 25, 2023

Node-oracledb 6.0 is here ! See #1552

@cjbj cjbj closed this as completed May 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants