Due to my
thoughts about persistence in xmpp applications I got an idea:
Why not get access to the database directly over xmpp?
For example we could do something like this:
Get documents
with a result like this
Code:
<iq type="result" from="[email protected]" to="[email protected]" id="query1">
<nosql type="result">
<doc id="3f2458e368e3687a68797321ea687135b">
[DOCUMENT CONTENT]
</doc>
</nosql>
</iq>
Get view
Code:
<iq type="result" from="[email protected]" to="[email protected]" id="query4">
<nosql type="result">
<view>
<row id="365435435354">
<doc id="9873543568">[DOCUMENT CONTENT]</doc>
</row>
<row id="68798351687" >
<doc id="877565654364">[DOCUMENT CONTENT]</doc>
</row>
</view>
</nosql>
</iq>
What do you think about ti? Is it bull****? Or are there better ways to access a database over xmpp?