Skip to Content.
Sympa Menu

freetds - Re: Python interface

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: carl dotsch <cardosur AT cardosur.com>
  • To: TDS Development Group <freetds AT franklin.metalab.unc.edu>
  • Subject: Re: Python interface
  • Date: Thu, 22 Aug 2002 01:19:22 +0200




Brian Bruns wrote:

> just FYI, I was able to build this thing but I have no idea about python
> so I couldn't verify that it actually works. But here are my steps:
>
> Grab distutils if you dont have it.
>
> tar xvfz distutils-latest.tgz
> cd distutils
> python setup.py install
>
> cd ..
> tar xvfz sybase-0.34.tgz
> cd sybase-0.34
> export SYBASE=/usr/local/freetds
> export CFLAGS="-DHAVE_FREETDS"
> export LD_LIBRARY_PATH=/usr/local/freetds/lib:${LD_LIBARY_PATH}
> python setup.py install
> cd examples
> (edit the example.py and fix the bottom stuff, freetds lacks the 110
> symbols for version use 100)
> python example.py
> (did nothing...dunno what it's suppose to do though)
>
> Brian
>
> > Have you tried
> >
> > http://www.object-craft.com.au/projects/sybase/
> >
> > ? I have no direct experience with it (other than downloading it and
> > seeing it had some freetds support). But it looks like it may do what you
> > are looking for. And perhaps you want to comment on
> > building/installing/running with it?
> >
> > Brian
> >
> > > I'm trying to code a python interface to freetds. I'm coming across
> > > these
> > > pitfalls:
> > >
> > > - I can't find the api documented. Using:
> > > http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dblibc/dbc_
> > > pdc02_0vmr.asp blindly.
> > >
> > > - Wanted to use python mysql module as a template. Mysql uses two
> > > objects:
> > > connection and result, where tds only uses dbprocess. So analogy
> > > with
> > > mysql is gone.
> > >
> > > - Can't find any cut and paste example programs for linux. (So I can
> > > make
> > > sure that the thing is really working).
> > >
> > > - Not sure wich api to use: dblib, ctlib or tds?
> > >
> > > - I see only information for users (people that only need to install the
> > > package) at the website almost nothing for people who want to write a
> > > program.
> > >
> > > Did any of you already make a start with a python interface? (I saw an
> > > empty
> > > chapter 'python' in the documentation)
> > >
> > > Any suggestions?
> > >
>
> ---
> You are currently subscribed to freetds as: [cardosur AT cardosur.com]
> To unsubscribe, forward this message to $subst('Email.Unsub')





Archive powered by MHonArc 2.6.24.

Top of Page