www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Oracle support in D?

reply Nick Papanastasiou <nickpap9411 gmail.com> writes:
Hey guys,

We have a few processes at work that are a too slow for the 
business's liking and could benefit from a D rewrite. Biggest 
issue is that I haven't been able to find any support for a 
querying an Oracle database, which we need to try this out.

Anyone have something I might have missed? Thanks.
Jul 05 2019
next sibling parent reply Adam D. Ruppe <destructionator gmail.com> writes:
On Friday, 5 July 2019 at 15:02:45 UTC, Nick Papanastasiou wrote:
 Anyone have something I might have missed? Thanks.
Did you consider ODBC yet? It might give you at least basic accesS. odbc bindings I believe is still in etc.c package distributed with dmd.
Jul 05 2019
parent Eduard Staniloiu <edi33416 gmail.com> writes:
On Friday, 5 July 2019 at 15:18:32 UTC, Adam D. Ruppe wrote:
 On Friday, 5 July 2019 at 15:02:45 UTC, Nick Papanastasiou 
 wrote:
 Anyone have something I might have missed? Thanks.
Did you consider ODBC yet? It might give you at least basic accesS. odbc bindings I believe is still in etc.c package distributed with dmd.
I think you should be able to use OCI with the help of dpp [0], just by including the headers ("oci.h") and linking with the library. You can try to get one of the OCI examples [1], use D syntax and compile it with dpp. Hope it helps, Edi [0] - https://code.dlang.org/packages/dpp [1] - https://docs.oracle.com/cd/A64702_01/doc/server.805/a58234/app_exam.htm
Jul 08 2019
prev sibling next sibling parent Laeeth Isharc <laeeth kaleidic.io> writes:
On Friday, 5 July 2019 at 15:02:45 UTC, Nick Papanastasiou wrote:
 Hey guys,

 We have a few processes at work that are a too slow for the 
 business's liking and could benefit from a D rewrite. Biggest 
 issue is that I haven't been able to find any support for a 
 querying an Oracle database, which we need to try this out.

 Anyone have something I might have missed? Thanks.
I don't use Oracle, but usually google is your friend (just search for oracle dlang). I brought the deimos driver up to date for dmd and phobos. https://github.com/kaleidicassociates/ocilib
Jul 11 2019
prev sibling parent bauss <jj_1337 live.dk> writes:
On Friday, 5 July 2019 at 15:02:45 UTC, Nick Papanastasiou wrote:
 Hey guys,

 We have a few processes at work that are a too slow for the 
 business's liking and could benefit from a D rewrite. Biggest 
 issue is that I haven't been able to find any support for a 
 querying an Oracle database, which we need to try this out.

 Anyone have something I might have missed? Thanks.
https://github.com/buggins/ddbc Should work :)
Jul 11 2019