L0t3k <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > im looking for opinions on two OOP related design issues for code im > targeting to PHP5. > (2) im working on a database access abstraction, again inspired by Java and > JDBC (MySQL driver is written and works, BTW). in Java you have the > Resultset.getXXX methods which gets the value of a given column as a > particular type. Java of course is strongly typed, whereas PHP is not. Is it > useful to implement the getXXX methods natively. i lean toward it primarily > because 1) folks coming from Java will be right at home 2) sometimes you > need to enforce a particular return type coming from a column 3) Metabase > does it for portability, and although it can be done in PHP, its more > efficient to do it in the extension. On the downside there is the issue of > bloat.
Hi, I have always wondered, how do you pronounce L0t3k? Seriously, if you are duplicating Metabase's effort, but in C, why not work with the Manuel Lemos then? This will fix any speed issues that Metabase has, and you will get his feedback. Many db abstraction classes I have seen are skewed towards mysql/postgresql, so prove to be useless when migrating to mssql or oracle. Manuel really knows a lot about databases and can teach everyone a lot about these issues. Or if you or anyone else would like to port ADOdb to a C extension, let me know. Regards, John -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php