kohana / database

A Kohana module for database interactions, building queries, and prepared statements
http://kohanaframework.org/documentation
158 stars 140 forks source link

Easier syntax for where() and also adding set() for inserts. #11

Closed dhrrgn closed 13 years ago

dhrrgn commented 13 years ago

Added the ability to send an array of where statements to the where(), and_where() and or_where() methods. Also allowed for associative arrays which will assume '=' for the operator. This makes for a shorter syntax when you have many where options.

I also added a set() method to Database_Query_Builder_Insert to match the usage of set() in Database_Query_Builder_Update. Allows for a much shorter syntax than doing columns()->values().

shadowhand commented 13 years ago

Did you create an issue on Redmine for this? If not, please do so and leave a comment here so we can reference it.

dhrrgn commented 13 years ago

Ya, sorry. It is here: http://dev.kohanaframework.org/issues/3842

Kohana-Builds commented 13 years ago

Pull request is targetted towards an invalid branch (3.1/master). Usually, this means you have targetted the master, rather than develop branch. Please correct this and try again. Thanks!