Re: Connecting website with SQL-database.....

From: Lincoln Yeoh <lylyeoh(at)mecomb(dot)com>
To: "Manuel Lemos" <mlemos(at)acm(dot)org>
Cc: tomg(at)admin(dot)nrnet(dot)org, pgsql-general(at)postgresql(dot)org
Subject: Re: Connecting website with SQL-database.....
Date: 2000-04-24 02:37:20
Message-ID: 3.0.5.32.20000424103720.008a6a70@pop.mecomb.po.my
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-interfaces pgsql-sql

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.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Lincoln Yeoh 2000-04-24 06:02:17 Revisited: Transactions, insert unique.
Previous Message Francisco Hernandez 2000-04-24 00:17:01 Record Limit......

Browse pgsql-interfaces by date

  From Date Subject
Next Message Manuel Lemos 2000-04-24 06:32:30 Re: Connecting website with SQL-database.....
Previous Message Manuel Lemos 2000-04-21 23:02:00 Re: Connecting website with SQL-database.....

Browse pgsql-sql by date

  From Date Subject
Next Message Manuel Lemos 2000-04-24 06:32:30 Re: Connecting website with SQL-database.....
Previous Message Tom Lane 2000-04-23 21:32:01 Re: Re: Returning sets from functions?