annotate model/delegating_interest_snapshot.lua @ 211:4993b71b383f
First checkin of lf2 (frontend second generation) prototype
author |
bsw |
date |
Wed Mar 02 20:06:26 2011 +0100 (2011-03-02) |
parents |
|
children |
|
rev |
line source |
bsw@211
|
1 DelegatingInterestSnapshot = mondelefant.new_class()
|
bsw@211
|
2 DelegatingInterestSnapshot.table = 'delegating_interest_snapshot'
|
bsw@211
|
3 DelegatingInterestSnapshot.primary_key = { "issue_id", "event", "member_id" }
|
bsw@211
|
4
|
bsw@211
|
5 function DelegatingInterestSnapshot:by_pk(issue_id, event, member_id)
|
bsw@211
|
6 return self:new_selector()
|
bsw@211
|
7 :add_where{ "issue_id = ? AND event = ? AND member_id = ?", issue_id, event, member_id }
|
bsw@211
|
8 :optional_object_mode()
|
bsw@211
|
9 :exec()
|
bsw@211
|
10 end |