12 Jun
2006
12 Jun
'06
10:28 a.m.
Would this be the appropriate time to say that I've a patch awaiting feedback that does exactly that for INSERT, UPDATE, and DELETE statements? :-)
Indeed, I like the db_insert/friends approach, and I like the the arrays as well. They actually complement each other well. Probably I should add I like parsers, where they make sense. Here they won't.
Doing the same for SELECT statements is harder, because SELECT statements are potentially an order of magnitude more complex. It has been done, though, (PEAR::DB_DataObjects comes to mind), if we really want to go that route. That's a separate issue, though. views and cck pave the way to inserts. And we have some experience with similarly complex issues due to forms api.