ejabberd:从mysql数据库检索聊天记录 [英] ejabberd: retrieve chat history from mysql db

查看:348
本文介绍了ejabberd:从mysql数据库检索聊天记录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用iOS客户端(和

I'm building a chat system based on ejabberd using an iOS client (and XMPPFramework).

我当前的聊天系统仅支持将聊天记录保存在MySQL数据库上的用户之间的一对一对话.

My current chat system supports only one-on-one conversations between users saving a chat history on a MySQL database.

为了重新创建相同的聊天系统,我需要ejabberd从我的数据库中检索聊天历史记录,以便用户在切换到新的聊天系统时不会丢失以前的对话.

In order to recreate the same chat system, i'd need ejabberd to retrieve chat history from my database so the users don't lose previous conversations when switching to the new chat system.

我不想保存对话客户端,因为可以删除并重新安装iOS应用(或用户可以切换设备).

I'd like not to save the conversation client-side since the iOS app can be deleted and reinstalled (or the user could switch device).

是否可以让ejabberd从我的MySQL数据库中读取聊天记录?

Is it possible to make ejabberd read chat history from my MySQL db?

推荐答案

使用 mod_archive_odbc 应该可以实现. 您可以通过检出 http://svn.process-one来找到它,这是一个额外的ejabberd模块. net/ejabberd-modules/和SVN. 有关如何在Debian

This should be possible with mod_archive_odbc. It's an additional ejabberd module that you can find by checking out http://svn.process-one.net/ejabberd-modules/ with SVN. An example on how to build and install a module on Debian can be found here.

这篇关于ejabberd:从mysql数据库检索聊天记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆