Received: from mecomb.com ([203.121.14.2]) by hub.org (8.9.3/8.9.3) with ESMTP id WAA22135 for ; Sun, 23 Apr 2000 22:37:40 -0400 (EDT) (envelope-from lylyeoh@mecomb.com) Received: (from mail@localhost) by mecomb.com (8.9.3/8.8.7) id KAA30478; Mon, 24 Apr 2000 10:36:55 +0800 Received: from (ilab2.mecomb.po.my [192.168.3.22]) by gate via smap (V2.1) id xma030436; Mon, 24 Apr 00 10:36:33 +0800 Message-Id: <3.0.5.32.20000424103720.008a6a70@pop.mecomb.po.my> X-Sender: lylyeoh@pop.mecomb.po.my X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.5 (32) Date: Mon, 24 Apr 2000 10:37:20 +0800 To: "Manuel Lemos" From: Lincoln Yeoh Subject: Re: Connecting website with SQL-database..... Cc: tomg@admin.nrnet.org, pgsql-general@postgresql.org In-Reply-To: <5781.146T31T12623240mlemos@acm.org> References: <3.0.5.32.20000420105907.008fb830@pop.mecomb.po.my> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Archive-Number: 200004/490 At 09:02 PM 21-04-2000 -0200, Manuel Lemos wrote: >It's a trade-off. If you want to take the most of a database non-standard >extensions, don't use database abstraction packages at all. If you want >flexibility in such way that your applications will be more portable, >database abstraction packages are the way to go. Yep. But can enough useful stuff be abstracted to be common amongst most databases? >>Plus some people seem to want Postsgresql to do transactions Oracle style, >>whereas some might want Oracle to do transactions Postgresql style. So how >>about Metabase helping out? >Like other database abstraction packages Metabase only provides 3 functions >to handle transactions: AutoCommit(On/Off), Commit and Rollback. >AutoCommit(Off) implicitly starts a new transaction. AutoCommit(On) >implicitly ends an ongoing transaction commiting any work done. Commit But with Oracle if you do a create table an implicit commit occurs. That's not true for Postgresql. Plus if you get a warning/error, Postgresql _requires_ you to rollback, whereas many other databases don't. Quite a number of people on this list, including me have found these differences to be significant. >Currently there is support for MySQL, mSQL, PostgreSQL, Oracle using OCI. The >MS SQL server driver is almost ready. There is somebody working on >Informix driver and possibly Sybase ASE. We could already move seeminglessly >between applications. Cool, someone I know has been looking for Oracle support for PHP. Not sure why he didn't find it earlier. >Despite of that, the lack of such a complete database abstraction package >for PHP is attracting many developers and some are willing to contribute >with new drivers. Yep, I found it quite surprising and annoying that I had to recompile php (version 3) when I wanted to add support for various stuff, and that's not just for database stuff. I haven't been keeping up with the php scene much tho - still using perl. Perl is respectably fast compared to C++. For example string concats weren't much slower compared to C++. But it's about 13 times slower for floating point stuff. That's not a big problem for most of my apps tho ;). All the best with your venture! Cheerio, Link.