-
Notifications
You must be signed in to change notification settings - Fork 15
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
Support for oracle #19
Comments
Hi @darkwisperer, Even with a more difficult configuration I rather use the official package oracledb because seems have a better support. And including the sqlite later with a separated lib should not be so difficult. I think we can ignore by default the integration tests on oracle. Something like knex does. Seems is possible to use Oracle with Travis Ci through this script https://github.com/cbandy/travis-oracle. And thanks for the interest helping this project 😄 |
Sounds good. Nice find for Travis-CI! I will start working on this and attempt to get CI testing through travis for it. |
Since Oracledb package requires certain libs and reqs, how do we want to go about making sure the host meets these requirements? Progress has been slow but its getting there. |
Is this problem related to the dev environment or the "production" environment? For the production environment, I think there is no problem. Since the electron app is released with all dependencies built in. I was thinking in just check if the oracle is available before requiring the oracle module or something like that. For the dev environment. Does it throw any error on installing the oracle lib without have the oracle already installed?
|
Its required for both dev/testing and for release. If the libs or reqs are missing the npm install of oracledb fails and raises an error. |
I don't care installing the oracle on my machine to release the app. |
Sounds good. I will make sure to keep oracle out of the dev dependencies. |
Hey @darkwisperer , how are you standing with this? :) |
HI @BornaP, |
Oh, sorry to hear that :/ Well then, I'll probably take a look next week if this will still be open. |
This issue still alive? |
I believe nobody is working on this now. |
Okok :( , Do you know if someone can take this? |
Sorry, I don't use Oracle. So I have no interest investing my time on this. If you are interested in helping. Please send a PR. I could help with any development question you have. Otherwise lets still waiting for somebody else :( |
How does one go about working on this one? Our office heavily uses oracle and I have grown tired of using Oracle SQL Developer. I would like to work on this issue. |
Sure, you're more than welcome to contribute. I think nobody is working on this issue right now. |
Just a thought, what if the bulky oracledb package could be optionally downloaded by the end user? IntelliJ Ultimate does something similar where you click a button to download the JDBC jars the first time you use a particular database type. There could be a function downloadOracleLibs() that would download and unpack a specific version in the sqlectron config directory, then an integration built in db/clients that checks for the presence of the libs before exporting anything. |
Hi there, is anyone working on this? |
I’d planned to but after a few hours struggling to get a dockerized oracledb to work I gave up and did something else. I learned some things that I could post later. |
I'd like to try,.. is the dockerized part necessary? I have an Ora Express VM running that I indended to use for this. |
The docker setup would help other contributors who don't have Oracle setup locally. Also, it would allow running tests for it on CI to make sure new releases don't include bugs to existing code. |
Hey guys, is there a PR or some code to work on for getting this going? |
For anyone interested in working on this, Oracle has a repo with some instructions on building images here: https://github.com/oracle/docker-images/tree/master/OracleDatabase/SingleInstance#readme For example, you can build an Oracle XE (Express Edition) 18 image like this:
Then you can run it like this:
It will generate a password for you and output it near the top of the Connect using user: |
First off I plan to submit a PR for this. There were a couplethings I wanted feedback on.
jsdbc is the npm package I am leaning towards using since it does not require the Oracle libs to be downloaded seperatly. The bonus to using jsdbc is that it supports SQLite. Which would allow the addition of two more database clients with little extra work.
The other option is the Oracle supported oracledb which require python 2.7, C Compiler with support for C++ 11, the oracle client libraries (OS specific). I think that these added "requirements" would bloat the core and add unnecessary complexities for the releases per OS.
Now I know I can get manual tests with oracle set up easily. I could not find a single CI that supported Oracle as a DB. I was thinking that Oracle would be a manual only test. Any thoughts or advice on this would be appreciated.
The text was updated successfully, but these errors were encountered: