Path: news.cs.au.dk!news.net.uni-c.dk!not-for-mail From: Klaus Marius Hansen Newsgroups: comp.lang.beta Subject: Re: I have (TEMPORALLY!!) given up ... Date: Thu, 23 Nov 2000 17:22:28 +0100 Organization: UNI-C Lines: 33 Message-ID: <3A1D4444.728522D0@ideogramic.com> References: <8virsg$6vg8q$1@gjallar.cs.au.dk> NNTP-Posting-Host: 192.38.38.230 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: news.net.uni-c.dk 974996630 40628 192.38.38.230 (23 Nov 2000 16:23:50 GMT) X-Complaints-To: usenet@news.net.uni-c.dk NNTP-Posting-Date: Thu, 23 Nov 2000 16:23:50 +0000 (UTC) X-Mailer: Mozilla 4.73 [en] (Windows NT 5.0; U) X-Accept-Language: en Xref: news.cs.au.dk comp.lang.beta:12651 Atle wrote: > > There is something like 5 lines in the PostGreSQL manual mentioning ODBC, the same abount in a 'Database for Linux' book that I > have. It basically explains that this is yet another Microsoft attempt at World Domination, and it is much better to use libpq.a .... > So, for me personally, there is no reason to pursue the ODBC thing. > I will try to make this nice, create a 'PQ' pattern as an interface to libpq.a (or I will give it any name that you may think is > better ..). > So, the advice I need now, is how to do this. > My idea was to kep it as simple as possible, there are lots of functions in libpq, lots of ways to open the database, it can be > opened over a socket of course, so the database can be here, and you can run postmaster -i at your place and access my database over > the Net. > My first idea was to duplicate all the libpq functions and leave it at that. > Well, one way to do it, would be to implement the BetaDBC interface for the Postgres API. Something like this has been done in the next (5.2?) release of the Mjolner System for MySQL and FrontBase. Check https://beta.cs.au.dk/doc/betadbc/index.html for the documentation of that. (I not sure about this, I am only guessing based on the above URL.) Regards, Klaus > But couldn't there be a simpler alternative? Like open, close, select, project and insert? > Comments? > > Thanks, Atle