By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,208 Members | 1,592 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,208 IT Pros & Developers. It's quick & easy.

Database abstraction library

P: n/a
What are your recommendations for lightweight database abstraction
library (Oracle/MySQL)?
I prefer OOP. :)

Tnx, Ivan.
Jul 16 '08 #1
Share this Question
Share on Google+
8 Replies


P: n/a
NC
On Jul 16, 1:56 am, Ivan S <ivan.sku...@gmail.comwrote:
>
What are your recommendations for lightweight database
abstraction library (Oracle/MySQL)?
You are looking for the impossible. "Lightweight abstraction" is a
contradiction in terms...

Cheers,
NC
Jul 16 '08 #2

P: n/a

"Ivan S" <iv*********@gmail.comwrote in message
news:5a**********************************@k37g2000 hsf.googlegroups.com...
What are your recommendations for lightweight database abstraction
library (Oracle/MySQL)?
I prefer OOP. :)
I don't know what is ment by "lightweight database abstraction". But this
link is worth reading http://aphp.yasashiisyndicate.org/wiki/ActiveTable it
uses oops. An example implementation is http://modulargaming.com/
Jul 16 '08 #3

P: n/a
On 16 srp, 11:17, NC <n...@iname.comwrote:
On Jul 16, 1:56 am, Ivan S <ivan.sku...@gmail.comwrote:
What are your recommendations for lightweight database
abstraction library (Oracle/MySQL)?

You are looking for the impossible. *"Lightweight abstraction" is a
contradiction in terms...

Cheers,
NC
I don't need huge level of abstraction, I just need little and fast
library that support some common functionality for Oracle (or MySql)
database.
Hope that clears possible language barrier. :)
Jul 16 '08 #4

P: n/a
On 16 srp, 12:28, "sathyashrayan" <sathyashra...@ATGmaIl.comwrote:
"Ivan S" <ivan.sku...@gmail.comwrote in message

news:5a**********************************@k37g2000 hsf.googlegroups.com...What are your recommendations for lightweight database abstraction
library (Oracle/MySQL)?
I prefer OOP. :)

I don't know what is ment by "lightweight database abstraction".
Maybe "lightweight library for database abstraction layer" sounds
better...
But this
link is worth readinghttp://aphp.yasashiisyndicate.org/wiki/ActiveTableit
uses oops. An example implementation ishttp://modulargaming.com/
Thanks for your help.
Jul 16 '08 #5

P: n/a
Ivan S schreef:
What are your recommendations for lightweight database abstraction
library (Oracle/MySQL)?
I prefer OOP. :)

Tnx, Ivan.
Have a look at ADODB (yes it is PHP).
http://www.phplens.com/adodb

Regards,
Erwin Moller
Jul 16 '08 #6

P: n/a
Ivan S wrote:
What are your recommendations for lightweight database abstraction
library (Oracle/MySQL)?
I prefer OOP. :)

Tnx, Ivan.
Ivan,

I created my own abstraction layer before PDO got going. Nothing fancy,
and much faster. Effectively it's a base class with mostly abstract
members and a derived class for each database I've used.

It's not elegant and it doesn't contain all of the bells and whistles of
PDO, but it works for me. And it didn't take that long to create it
(although I've added to it over the years).

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================

Jul 16 '08 #7

P: n/a
NC
On Jul 16, 3:39 am, Ivan S <ivan.sku...@gmail.comwrote:
>
"Lightweight abstraction" is a contradiction in terms...

I don't need huge level of abstraction, I just need little
and fast library that support some common functionality for
Oracle (or MySql) database.
Again, it's not possible, because abstraction can't be fast. Once you
decided to use abstraction, you must accept a performance penalty.
The extent of that penalty varies depending on the abstraction layer
used and on the type of query run. In benchmark tests, popular
abstraction layers increase execution times by anywhere between 15%
and 300%:

http://phplens.com/lens/adodb/

Cheers,
NC
Jul 16 '08 #8

P: n/a
On Jul 16, 3:56*pm, Erwin Moller
<Since_humans_read_this_I_am_spammed_too_m...@spam yourself.comwrote:
Ivan S schreef:
What are your recommendations for lightweight database abstraction
library (Oracle/MySQL)?
I prefer OOP. :)
Tnx, Ivan.

Have a look at ADODB (yes it is PHP).http://www.phplens.com/adodb

Regards,
Erwin Moller
I will prefer Db.php from pear. It is very commonly used for this job.

http://satya61229.blogspot.com
Jul 17 '08 #9

This discussion thread is closed

Replies have been disabled for this discussion.