db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <de...@segel.com>
Subject RE: How to connect derby by python
Date Tue, 10 Nov 2009 13:40:24 GMT

> -----Original Message-----
> From: Kristian.Waagan@Sun.COM [mailto:Kristian.Waagan@Sun.COM]
> Sent: Tuesday, November 10, 2009 7:32 AM
> To: Derby Discussion
> Subject: Re: How to connect derby by python
> Zhang Qian wrote:
> > Hi,
> >
> > I have to access derby DB with my python script, but I do not know if
> > there are any python modules for this purpose I can use.
> > Any suggestions will be really appreciated!
> Hi Qian,
> What about using Jython :)
> There's an article describing how to connect to Python using various IBM
> drivers. Note that the article is rather old, and I don't think DB2
> driver compatibility is actively pursued any more in the Derby community.
> So, it may or may not work...

Actually Jython is pretty much the only way to go here. 

If you want to do an ODBC-JDBC bridge, then you have to see if there's an
ODBC module already written, else you'd have to write one yourself.  (Even
still, you may have problems.)

Or you could just write your own Java TCP/IP app that acts as a proxy

Either of these solutions are ugly and well... fragile solutions. Not

Jython should be able to read your python script as is and will work.
Note: I say *should*. I haven't played with Jython, so I don't know if there
are any compatibility issues.

Even if there are compatibility issues, you can modify your script and work
around those.


View raw message