Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python - Connecting to JDBC

Tags:

python

jdbc

odbc

I found this library, JayDeBeApi which says it will let me connect to JDBC.

Does anyone know if how reliable it is, or if there's a better way to connect?

If not, I'm having trouble setting up JayDeBeAPI. The instructions say to run some Python code to set up JPype but I'm not clear if I need to do that in the same script before calling the connection code, or is it some kind of server I need to leave running?

like image 469
Greg Avatar asked Nov 13 '22 23:11

Greg


1 Answers

It depends whether you want to use CPython or Jython. For Jython, I would suggest for less complicated cases to use more simple tools.

like image 102
mcepl Avatar answered Dec 10 '22 04:12

mcepl