diff options
author | Holger Weiss <holger@zedat.fu-berlin.de> | 2016-09-15 23:02:04 +0200 |
---|---|---|
committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2016-09-15 23:02:04 +0200 |
commit | 27999a122fe5003093605c93889093727639d563 (patch) | |
tree | f1853263af64e8c71799ddae4019ffe29108938c /src/node_mb_sql.erl | |
parent | Merge pull request #1249 from weiss:push-requirements (diff) |
node_mb_sql: Add missing (SQL-specific) functions
Diffstat (limited to 'src/node_mb_sql.erl')
-rw-r--r-- | src/node_mb_sql.erl | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/node_mb_sql.erl b/src/node_mb_sql.erl index a3fdf3ae..12567431 100644 --- a/src/node_mb_sql.erl +++ b/src/node_mb_sql.erl @@ -41,7 +41,8 @@ get_pending_nodes/2, get_states/1, get_state/2, set_state/1, get_items/7, get_items/3, get_item/7, get_item/2, set_item/1, get_item_name/3, node_to_path/1, - path_to_node/1]). + path_to_node/1, get_entity_subscriptions_for_send_last/2, + get_last_items/3]). init(Host, ServerHost, Opts) -> node_pep_sql:init(Host, ServerHost, Opts). @@ -101,6 +102,9 @@ set_affiliation(Nidx, Owner, Affiliation) -> get_entity_subscriptions(Host, Owner) -> node_pep_sql:get_entity_subscriptions(Host, Owner). +get_entity_subscriptions_for_send_last(Host, Owner) -> + node_pep_sql:get_entity_subscriptions_for_send_last(Host, Owner). + get_node_subscriptions(Nidx) -> node_pep_sql:get_node_subscriptions(Nidx). @@ -130,6 +134,9 @@ get_items(Nidx, JID, AccessModel, PresenceSubscription, RosterGroup, SubId, node_pep_sql:get_items(Nidx, JID, AccessModel, PresenceSubscription, RosterGroup, SubId, RSM). +get_last_items(Nidx, JID, Count) -> + node_pep_sql:get_last_items(Nidx, JID, Count). + get_item(Nidx, ItemId) -> node_pep_sql:get_item(Nidx, ItemId). |