ezDB and PHP 5.3
As-per Justin’s request, I’ve renamed by fork of ezSQL to ezDB. I’ve updated the github links, it’s now:
http://github.com/nshahzad/ezdb/
This will include changes to the class names, to keep it all even (ezSQL to ezDB). I’m working on APC caching right now, since that’s what I’m using on current project.
PHP 5.3 was also released today! This is an exciting release – with the addition of namespaces and __callStatic(), the static DB class will be much easier to work with (instead of replicating every function). I will be finishing up the 5.2 release first, and then subsequent releases and features, I think I will be posting to the PHP 5.3 release only, unless there’s demand to back-port it all.
I’ll also be implementing some features from CakePHP’s ORM, such as “findBy{ColumnName}({tablename})”, and other simple lookups. I’ve been using Cake alot too, and it’s a great framework.
Cheers!
The new caching options look fantastic and I’m really excited about the new features in 5.3 that the class will be able to take advantage of. By the way, are you planning to officially add PDO support to the class?
To be honest, I’m not sure, since PDO is kinda an abstraction layer itself.
How does this class compare in terms of security and speed with pdo ?
Hi Doug,
If you have access to PDO, I’d use that. Not all servers/hosts have PDO available, so that’s where this comes in. Speed, I’m not sure, it certainly won’t be any faster. In terms of security, there’s no bound parameters, so there’s a minus on that. ezDB was mainly a PHP5 upgrade to the ezSQL class, which I had been using in a few projects before PDO was really an option.