Oleg Broytmann <[EMAIL PROTECTED]> writes:

> On Wed, Jan 17, 2007 at 12:26:54PM -0600, Rick Flosi wrote:
>> What about a "deleteBy" method and "delete" method, both similar to what 
>> the select methods do, but they delete?
>> 
>> Klass.deleteBy(otherKlassID = 10)
>> Klass.delete(AND(IN(Klass.q.id, [1,2,3])))
>
>    It could be done, I think. But is it really worth having comparing to
>
> Delete(Klass, Klass.q.otherKlassID==10)
> Delete(Klass, AND(IN(Klass.q.id, [1,2,3])))
>
>    ?

The deleteBy approach is more intuitive and it is also more like selectBy,
creating a better API, IMVHO.

-- 
Jorge Godoy      <[EMAIL PROTECTED]>


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
sqlobject-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss

Reply via email to