connect icon indicating copy to clipboard operation
connect copied to clipboard

Support oracle db in sql components

Open cdz99 opened this issue 4 years ago • 3 comments

Hi, how long will it take for benthos to support oracle db?

cdz99 avatar Jul 13 '21 00:07 cdz99

Hey @cdz99, it'd need a bit of investigation as we'd need to open up support and ideally also add some sort of integration testing, but in theory it might be a relatively small task.

Jeffail avatar Jul 14 '21 18:07 Jeffail

Hi, @Jeffail . We have a need for this Oracle DB functionality as well. We could use Oracle SQLcl with the subprocess processor to pass a script and get the results back. Need to test the feasibility of that approach. Ideally, there is just another option in the SQL processor Oracle.

Is this type of driver compatible with the ethos of Benthos? https://github.com/godror/godror

dalemccrory avatar Oct 11 '21 18:10 dalemccrory

We might want to look at https://github.com/sijms/go-ora too, since it doesn't rely on CGo. The annoying part is adding integration tests for this, since Oracle refuses to publish prebuilt Docker images of their database engine for some reason. The only official way to get a Docker image seems to require building it from scratch: https://github.com/oracle/docker-images/blob/main/OracleDatabase/SingleInstance/README.md

LE: There seems to be a container on quay.io that's maintained by a 3rd party: https://github.com/MaksymBilenko/docker-oracle-12c. Not sure if we should rely on it, though.

LE2: This might be a better-maintained container: https://hub.docker.com/r/gvenzl/oracle-xe -> https://github.com/gvenzl/oci-oracle-xe

mihaitodor avatar Oct 14 '21 22:10 mihaitodor