-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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 Oracle DB #2853
Comments
+1 |
I noticed that MSSQL is currently a preview feature for Prisma. Is there any timeline for Oracle support? This would greatly increase adoption by large companies. |
+1 |
2 similar comments
+1 |
+1 |
We need this support, and willing to pay for it. Can we setup bounty to accelerate this development ? |
+1 |
1 similar comment
+1 |
The biggest problem I see is there's no Rust crate for Oracle that fits well to the current async/await ecosystem (that I know of). Of course we can do it ourselves as we did with SQL Server. The problem with Oracle are the legal issues of building a client from scratch. You can link to their C library with ffi and that is ok for them, but need a permission to do your own library. The thing why I don't like binding to C from rust is the possibility of memory bugs that are really nasty to solve. So a good way to get this forward is to get some people to write a modern asynchronous Oracle crate for Rust. That's about 40% of the work, then it's about integration from there on. |
What about letting users use for example |
There is MIT licensed crate that support executing SQL: Maybe we can wrap it with tokio ? |
Guess you then have to check what the Oracle Call Interface license is. |
Quick googling results:
OCILIB is apache licensed and I think it's been around for a while. It encapsulates OCI (Oracle Call Interface), so I think if we create this lib, we can license it similar to OCILIB. |
I'm interested in helping, what are the steps to integrate the prism with this client made by oracle itself? |
I think, the changes should be made on rust side of prisma, and then make sure everything on js side play nice with it... |
I would be interested in helping get this driver done |
This would be a much appreciated feature, specially given the free availability of Oracle DBs in the cloud: https://www.oracle.com/cloud/free/#always-free |
Maybe just add support for oracle db here for the SQL Query AST and Visitor |
+1 |
+1 |
correct me if I'm wrong, but I believe that the problem is not why oracle is closed, because while prism does not approve oracle, typeorm and knex have already done that. |
I meant the prisma connector api |
it helps? |
This comment was marked as abuse.
This comment was marked as abuse.
I can help with the support too |
If needed I can allocated a part of my team to help creating this connector. |
Reviving this, does anyone what are the things that we can do to make this connector a reality? I am sure tons of people are willing to help |
I agree and would love to see Oracle support. But for those who are looking for something until it does work, oracledb works very well. |
This comment was marked as off-topic.
This comment was marked as off-topic.
2 similar comments
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
Indicating support as well. I'm not an Oracle professional, I've been forced into it by the institute I work for. I'd love to abstract it as much as possible. |
Is there any formal headway being made on this now? |
Hi all, I am the Oracle Database Product Manager and working for Oracle. Although I do not fully understand the architecture of Prisma, please forgive my lack of awareness, we do offer a fully open-source JavaScript driver and fully open-source C bindings for our C-based (Oracle Call Interface) drivers, called ODPI-C. These C bindings (ODPI-C) are the same that are used for the open-source, community-built Rust driver oracle. Furthermore, the required C driver libraries are available for free as a package called the Oracle Instant Client which is licensed under Oracle's Free Use Terms and Conditions. Last but not least, there is also a free-to-use Oracle Database variant called With all that information laid out, are there still any technical or licensing obstacles that would prevent Oracle Database support for Prisma? Thanks, |
No, that sounds good. Would you say the Rust driver is stable and mature enough to support the full relevant feature set? Now of course someone "only" has to add an Oracle-compatible SQL dialect to Prisma (provider |
@janpio would you accept contributions despite it not being on your roadmap? It's pretty important for a few, I'm sure we'd chip in. |
Sure, the code is all on GitHub, so if you can figure it all out, we are willing to either review the PRs at the end or help how to set up a fork that could add support for this new provider. |
Hey @janpio,
Yeah, the Rust driver that I've linked above is stable and mature. We know the developers, and they are doing great work there. And I'm sure that in the unlikely event that we were to find anything, we could also report any issues to the driver team there and ask them for a fix in a true open-source community spirit. To @JaffParker's point and earlier comment, a few people here have stated interest in helping to add Oracle Database support, e.g., @joseviniciusnunes, @chadelofson, @agustindev, @koka0012 And I, of course, am willing to provide answers, clarity, and help wherever possible. |
👀 |
Hi all, just discovered this while searching the web for a reliable oracle orm solution. Would really love to see this come to live! We could provide help with generating oracle dialect and sql syntax as requested by @janpio:
|
It would be great to have an oracle Prisma adapter. There are updates? |
any updates on this adapter? |
No updates or concrete plans right now. This issue is just here to track the demand for this via 👍 reactions to the original issue text. |
An alternative ORM that supports Oracle is https://github.com/alfateam/rdb |
Well there are other ORMs that support oracle, good old typeorm has also support for oracledb. More modern query builder lack support for oracle most of the time. |
Yeah, moved on as well. Just forgot the remove the notification. |
One note that may not be known by the non-Oracle user is that node-node-oracledb 6 by default is pure JavaScript and is fully open source. This makes installation and use trivial. Optional, advanced DB features are available if Oracle Instant Client / Oracle Client is additionally installed with node-oracledb but most users don't need them. |
Problem
Support to Oracle db
The text was updated successfully, but these errors were encountered: