如何在Monotouch for iOS中使用SQLite中的FTS [英] How to use FTS in SQLite with Monotouch for iOS

查看:192
本文介绍了如何在Monotouch for iOS中使用SQLite中的FTS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Monotouch构建一个iOS应用程序,该应用程序有一个相当大的sqlite数据库,里面充满了文本。我需要在本文中提供快速搜索。



我现在最好的解决方案是FTS模块(最好是版本4)。我读过,iOS上的sqlite的默认实例不支持FTS。如果这是真的,建议使用Monotouch构建sqlite自定义实例的建议方式是什么?或者可以做到这一点?

我发现这个网站描述了如何用xcode来完成这个任务,但是我不清楚我将如何完成Monotouch。

http: //longweekendmobile.com/2010/06/16/sqlite-full-text-search-for-iphone-ipadyour-own-sqlite-for-iphone-and-ipad/



任何帮助都非常感谢!

解决方案

你必须做同样的事情,建立自己的libsqlite3.a,并修改所有公共导出,以免与系统加载的libsqlite冲突,然后您需要修改任何要绑定到sqlite的库到[DllImport(__Internal)],而不是libsqlite。


I'm looking to build an iOS app using Monotouch that has a rather large sqlite db full of text. I need to provide fast searching over this text.

My best solution right now is the FTS module (preferably version 4). I have read that the default instance of sqlite on iOS does not support FTS. If this is true what is the recommended way to build a custom instance of sqlite with Monotouch? Or can this be done at all?

I found this site describing how to accomplish this with xcode, but it is not clear how I would accomplish with Monotouch.
http://longweekendmobile.com/2010/06/16/sqlite-full-text-search-for-iphone-ipadyour-own-sqlite-for-iphone-and-ipad/

Any help is much appreciated!

解决方案

You would have to do the same thing, build your own libsqlite3.a, and mangle all the public exports so it doesn't conflict with the libsqlite loaded by the system, and then you would need to modify whatever library you want to bind to sqlite to [DllImport ("__Internal")] instead of libsqlite.

这篇关于如何在Monotouch for iOS中使用SQLite中的FTS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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