PEAR::DB - worth learning?

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
Steveo31
Forum Contributor
Posts: 416
Joined: Sun Nov 23, 2003 9:05 pm
Location: San Jose CA

PEAR::DB - worth learning?

Post by Steveo31 »

From what PEAR looks like, it would be extremely handy as it spans all SQL databases, right? Should one learn it?
lostboy
Forum Contributor
Posts: 329
Joined: Mon Dec 30, 2002 8:12 pm
Location: toronto,canada

Post by lostboy »

nah...try adodb
User avatar
Slippy
Forum Contributor
Posts: 113
Joined: Sat Jul 12, 2003 11:31 pm
Location: Vancouver eh!

Post by Slippy »

ADODB eh? I was wondering the same thing... I'll have to check it out now... :)
Steveo31
Forum Contributor
Posts: 416
Joined: Sun Nov 23, 2003 9:05 pm
Location: San Jose CA

Post by Steveo31 »

Adodb, huh. What is it? From the site it's like ASP -> PHP and back...?
User avatar
Slippy
Forum Contributor
Posts: 113
Joined: Sat Jul 12, 2003 11:31 pm
Location: Vancouver eh!

Post by Slippy »

Adodb, huh. What is it? From the site it's like ASP -> PHP and back...?
It looks like a fairly easy to use class that can be used to bridge the differences between database platforms.

The tutorial cleared it up for me http://php.weblogs.com/adodb_tutorial
Steveo31
Forum Contributor
Posts: 416
Joined: Sun Nov 23, 2003 9:05 pm
Location: San Jose CA

Post by Steveo31 »

Ah ok. So it's like PEAR, but in that more DBs are supported

?
User avatar
markl999
DevNet Resident
Posts: 1972
Joined: Thu Oct 16, 2003 5:49 pm
Location: Manchester (UK)

Post by markl999 »

PEAR is lots of packages (PHP Extension and Application Repository) one of which is a database package (DB). Adodb is just a database 'package'.

So adodb is along the lines of PEAR's DB package.
User avatar
Pyrite
Forum Regular
Posts: 769
Joined: Tue Sep 23, 2003 11:07 pm
Location: The Republic of Texas
Contact:

Post by Pyrite »

ADOdb F#@^@ ROCKS! Been using it for about 2 years, it is a lot more than just database abstraction and objects. The db ojects you create have tons of handy functions. Plus it encapsulates your php db code, so if you ever want to switch databases, it is only a matter of changing a variable in the config file. Good stuff..
Steveo31
Forum Contributor
Posts: 416
Joined: Sun Nov 23, 2003 9:05 pm
Location: San Jose CA

Post by Steveo31 »

You misspelled F@$%.

:P
Post Reply