“没有这样的功能:REGEXP”在iOS上的sqlite3中 [英] "No such function: REGEXP" in sqlite3 on iOS

查看:764
本文介绍了“没有这样的功能:REGEXP”在iOS上的sqlite3中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在添加regexp功能的情况下重建libsqlite3.dylib?或者使用create_sqlite_function来做它?

Is it possible to rebuild libsqlite3.dylib with the regexp function added? Or use create_sqlite_function to do it?

推荐答案

正如SQLite文档所说:

As the SQLite documentation says:


如果在运行时添加了名为regexp的应用程序定义的SQL函数,则将调用该函数以实现REGEXP运算符。

If a application-defined SQL function named "regexp" is added at run-time, that function will be called in order to implement the REGEXP operator.

所以你应该可以像你自己建议的那样使用 create_sqlite_function

so you should be able to use create_sqlite_function like you already suggested yourself.

这篇关于“没有这样的功能:REGEXP”在iOS上的sqlite3中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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