× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



On Tue, Dec 3, 2019 at 12:17 PM Craig Richards <craig@xxxxxxxxxxxxxxxx> wrote:

I'm certainly open to the idea of contributing to the project, but I might
need a little support/mentoring to do it...

I'm in a similar boat, maybe a little further along than yours, but
still a dinghy. ;)

I did a little poking around in ibm_db_dbi.py and discovered there's a
`columns` method on the connection object. It lets you specify a
schema and a table and gives you a list of dictionaries, one
dictionary per column in the table. You could optionally give it a
third argument which is a sequence of desired column names, and it
will just give you back the info for those columns.

This might be another alternative within ibm_db_dbi (should be similar
to querying SYSCOLUMNS, but using just Python and no SQL). For all I
know, this has the same underlying mechanism (within ibm_db) as
cursor.description, and may be subject to the same limitations (and
errors), but it's worth experimenting with.

If you try it out, report what you get. It works fine for me, but
since my system is U.S. English, with all column names composed
entirely of "safe ASCII" characters, that's not saying much.

John Y.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.