简体   繁体   English

Python - 连接到JDBC

[英]Python - Connecting to JDBC

I found this library, JayDeBeApi which says it will let me connect to JDBC. 我找到了这个库, JayDeBeApi说它会让我连接到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. 如果没有,我在设置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? 说明说运行一些Python代码来设置JPype但我不清楚我是否需​​要在调用连接代码之前在同一个脚本中执行此操作,或者是否需要保持运行的某种服务器?

It depends whether you want to use CPython or Jython. 这取决于您是否要使用CPython或Jython。 For Jython, I would suggest for less complicated cases to use more simple tools . 对于Jython,我建议使用更简单的工具来处理不太复杂的情况。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM