How can I make "relative" update

24 views
Skip to first unread message

Nandiin Bao

unread,
Jul 12, 2016, 3:52:20 AM7/12/16
to NotORM
I want to make something like
UPDATE users SET exp = exp + 1 where role=lucky

can I make this with NotORM ? and how ? 
Thanks in advance !

Jakub Vrana

unread,
Jul 12, 2016, 6:16:30 AM7/12/16
to not...@googlegroups.com
You can use `new NotORM_Literal("exp + 1")` as the value to be set. It's
documented at http://www.notorm.com/#persistence.

Jakub
> --
> You received this message because you are subscribed to the Google
> Groups "NotORM" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to notorm+un...@googlegroups.com
> <mailto:notorm+un...@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages