Tigase组件第七节 – 数据库

本文翻译自 – http://www.tigase.org/content/component-implementation-lesson-7-data-repository 数据库

在某些状况,你须要经过组件对须要保存的数据进行持久化。固然你能够使用组件配置API向组件提供一些数据库链接配置项,本身实现数据库链接,并向数据库中保存数据。但咱们其实已经提供了一个很是简单方便的数据访问框架,它容许你透明得访问数据库或文件系统,读取或保存数据。也提供了ad-hoc命令调用接口,因此你能够使用具有ad-hoc功能的XMPP客户端直接操做你的组件数据。 框架

This guide will teach you how to create a simple data repository and use it in your component. The repository can be automatically exposed via ad-hoc commands and you can change your data from any XMPP client.这些话不翻译了,由于后面没有下文…… less

相关文章
相关标签/搜索