[DB-SIG] Python and Codebase from Sequiter

Gene Chiaramonte gchiaramonte@ibl.bm
Wed, 2 Feb 2000 08:50:21 -0400


Does anyone know if there is a Python module to access Codebase on windows?

I don't have SWIG set up here, but if someone else does, I can supply you
with the header file for codebase and we could give it a try. Let me know.

Thanks,

Gene

> -----Original Message-----
> From: db-sig-admin@python.org [mailto:db-sig-admin@python.org]On
> Behalf Of alexander smishlajev
> Sent: Monday, January 31, 2000 10:37 AM
> To: db-sig@python.org
> Cc: mal@lemburg.com
> Subject: Re: [DB-SIG] Next Version
>
>
> "M.-A. Lemburg" wrote:
> >
> > > - list of available (configured) data sources.
> >
> > This can only be done for database manager, e.g. the ODBC
> > managers in Windows, iODBC and unixODBC. mxODBC will have
> > support for this in a future version.
>
> such information is avalable at least for Oracle connections.  for
> PostgreSQL, a list of host databases may be obtained after successfull
> connection.
>
> > > - list of database users: logon name, groups/roles
> > > - list of user groups (roles): name, members
> >
> > Don't know where you would get these infos... you normally
> > have to have admin priviledges to even look at those sys tables.
>
> not always.  as far as i know, this information is by default available
> to public on PostgreSQL, MS SQL and Oracle.  of course, db admin may
> reconfigure this, but at least a list of groups/roles assigned to
> current login usually can be obtained as well as login name itself.
>
> > An abstraction layer could query the sys tables directly, BTW.
>
> yes, it could.  but that would require some knowledge about the
> implementation of such things in _each_ database.  isn't it a job for db
> driver?
>
> > > - list of database objects: owner (schema), name, type (table,
> > > view, alias/synonym, procedure etc.), temporary object flag,
> > > server-specific info and maybe permission list?  synonyms must
> > > point to corresponding object.
> >
> > Don't know how other DBs implement this, but mxODBC has the
> > catalog methods for these things.
>
> as far as i know, each server has it's own way to access catalog
> information.  again, i think that db driver should know a way of doing
> this for handled database.
>
> > > and...  in api spec v2.0 i cannot find anything about writing
> > > blobs to database.  am i missing something?
> >
> > See the type object section: blobs should be wrapped into
> > Binary(string) objects and then passed to the .executeXXX()
> > methods as parameter. On output you will see a column type
> > equal to the BINARY type object in the cursor description.
>
> i was told that this approach is not working for DCOracle.  at least not
> with procedure calls.  perhaps allowed LOB operations should be somehow
> reported by a db driver?
>
> best wishes,
> alex.
>
>
> _______________________________________________
> DB-SIG maillist  -  DB-SIG@python.org
> http://www.python.org/mailman/listinfo/db-sig