sandeep529 Posted April 6, 2009 Share Posted April 6, 2009 hi, This is a MySQL ORM Class which (I think) minimises keystrokes required for carrying out an MySQL Operation in PHP. It uses magic functions in PHP5 ,So there are only very few function names to remember while using it.For example a new row can be inserted in the table `user` using the following line $db->user=array('name'=>'user_1','no'=>25,'key'=>45,'joined_date'=>(object)"NOW"); Eliminating the String In String nature of mysql queries was also a goal in creating this class I think missing a single quote from a big query string can be pin point.But a missing a terminating single quote from a php string will be detected in the editor itself if it supports syntax highlighting(editors like netbeans). I am attaching a tar file containg the class file,a demo,and a howto guide.The demo can be used for testing the features of this class,(or better things like testing regular expressions..) Please take a look and let me know your comments.. Thanks, Sandeep. [attachment deleted by admin] Quote Link to comment https://forums.phpfreaks.com/topic/152737-a-mysql-orm-using-magic-functions/ Share on other sites More sharing options...
sandeep529 Posted April 6, 2009 Author Share Posted April 6, 2009 hi, This is a MySQL ORM Class which (I think) minimises keystrokes required for carrying out an MySQL Operation in PHP. It uses magic functions in PHP5 ,So there are only very few function names to remember while using it.For example a new row can be inserted in the table `user` using the following line $db->user=array('name'=>'user_1','no'=>25,'key'=>45,'joined_date'=>(object)"NOW"); Eliminating the String In String nature of mysql queries was also a goal in creating this class I think missing a single quote from a big query string can be hard to pin point.But a missing a terminating single quote or double quote from a php string will be detected in the editor itself if it supports syntax highlighting(editors like netbeans). I am attaching a tar file containg the class file,a demo,and a howto guide.The demo can be used for testing the features of this class,(or better things like testing regular expressions..) Please take a look and let me know your comments.. Thanks, Sandeep. [attachment deleted by admin] Quote Link to comment https://forums.phpfreaks.com/topic/152737-a-mysql-orm-using-magic-functions/#findComment-802138 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.