RainDB

69 views
Skip to first unread message

Rain

unread,
Jan 18, 2013, 11:41:39 PM1/18/13
to rainfr...@googlegroups.com
Hi all, 
the RainDB class is almost ready, it implements few basic methods:
init
configure
getField
getRow
getAll
getLastInsertedId
getExecutedQuery
getLastQuery
disconnect

and the entire code is covered by Unit Test.

I was thinking to create a DBAction class as an extension of the RainDB (may be using traits?) to implement the following methods:

createDB
deleteDB
ranameDB

createTable
deleteTable
renameTable
alterTable // change fields

insert     // insert row
delete    // delete row
update   // update the value of a row

This class will be useful especially for the RainCMS as in the RainFramework instead of RainDB you may want to use an ORM like Doctrine. Let me know your thoughts!

Tamer AĞAOĞLU

unread,
Feb 16, 2013, 7:27:40 AM2/16/13
to rainfr...@googlegroups.com
and  Relations

has_one
has_many
belongs_to etc..

Federico Ulfo

unread,
Feb 16, 2013, 12:14:04 PM2/16/13
to rainfr...@googlegroups.com
Good point, how could you handle the relations? Do you have any experience with ORM?


--
You received this message because you are subscribed to the Google Groups "rainframework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rainframewor...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

İzet Nanic

unread,
Jan 29, 2015, 4:50:23 AM1/29/15
to rainfr...@googlegroups.com

Federico Ulfo

unread,
Jan 31, 2015, 4:59:50 PM1/31/15
to rainfr...@googlegroups.com
Nice, I'll take a look at your project.

On Thu, Jan 29, 2015 at 4:50 AM, İzet Nanic <fare...@gmail.com> wrote:

--
You received this message because you are subscribed to the Google Groups "rainframework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rainframewor...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages