--
Wendal Chen
GuangDong China
--
邮件自: 列表“openresty”,专用于技术讨论!
发言: 请发邮件到 open...@googlegroups.com
退订: 请发邮件至 openresty+...@googlegroups.com
详情: http://groups.google.com/group/openresty
官网: http://openresty.org/
仓库: https://github.com/agentzh/ngx_openresty
建议: 提问的智慧 http://wiki.woodpecker.org.cn/moin/AskForHelp
教程: http://agentzh.org/misc/nginx/agentzh-nginx-tutorials-zhcn.html
我需要读取一个sqlite数据库的文件, 因为这个数据库文件是其他程序维护的的,没法换成mysql所以呢,我就问一下, 能否像mysql那样查询其中的数据, 例如nginx_drizzle,或者lua-resty-mysql
ngx_lua也只是做到网络io的异步复用,本地io目前还没有非阻塞的方案。
On Mar 31, 8:14 pm, Wendal Chen <wendal1...@gmail.com> wrote:
> 这些库都是阻塞的,所以想看看有无非阻塞的方案
>
> 在 2012年3月31日 下午8:13,smallfish <smallfish...@gmail.com>写道:
>
>
>
> > 嗯,openresty本身并不支持sqlite的。你可以通过lua的sqlite库来调用。
> > --
> > blog:http://chenxiaoyu.org
>
> > 在 2012年3月31日 下午8:05,G_will <gwill.b...@gmail.com>写道:
>
> >> 在 2012年3月31日 下午6:46,Wendal Chen <wendal1...@gmail.com>写道:
>
> >>> 我需要读取一个sqlite数据库的文件, 因为这个数据库文件是其他程序维护的的,没法换成mysql
>
> >>> 所以呢,我就问一下, 能否像mysql那样查询其中的数据, 例如nginx_drizzle,或者lua-resty-mysql
>
> >> 呃。。。SQLite不是像MySQL那样的S/C形式的数据库。
>
> >> 你可以看这里。
>
> >>http://lua-users.org/wiki/LuaSqlite
>
> >>> 在 2012年3月31日 下午6:38,G_will <gwill.b...@gmail.com>写道:
>
> >>>> 在 2012年3月31日 下午6:37,Wendal Chen <wendal1...@gmail.com>写道:
>
> >>>>> RT
>
> >>>>> 没找到说明
>
> >>>> 呃。。。您是想怎么用?
>
> >>>>> --
> >>>>> Wendal Chen
> >>>>> GuangDong China
>
> >>>>> --
> >>>>> 邮件自: 列表“openresty”,专用于技术讨论!
> >>>>> 发言: 请发邮件到 open...@googlegroups.com
> >>>>> 退订: 请发邮件至 openresty+...@googlegroups.com
> >>>>> 详情:http://groups.google.com/group/openresty
> >>>>> 官网:http://openresty.org/
> >>>>> 仓库:https://github.com/agentzh/ngx_openresty
> >>>>> 建议: 提问的智慧http://wiki.woodpecker.org.cn/moin/AskForHelp
> >>>>> 教程:http://agentzh.org/misc/nginx/agentzh-nginx-tutorials-zhcn.html
>
> >>>> --
> >>>> 邮件自: 列表“openresty”,专用于技术讨论!
> >>>> 发言: 请发邮件到 open...@googlegroups.com
> >>>> 退订: 请发邮件至 openresty+...@googlegroups.com
> >>>> 详情:http://groups.google.com/group/openresty
> >>>> 官网:http://openresty.org/
> >>>> 仓库:https://github.com/agentzh/ngx_openresty
> >>>> 建议: 提问的智慧http://wiki.woodpecker.org.cn/moin/AskForHelp
> >>>> 教程:http://agentzh.org/misc/nginx/agentzh-nginx-tutorials-zhcn.html
>
> >>> --
> >>> Wendal Chen
> >>> GuangDong China
>
> >>> --
> >>> 邮件自: 列表“openresty”,专用于技术讨论!
> >>> 发言: 请发邮件到 open...@googlegroups.com
> >>> 退订: 请发邮件至 openresty+...@googlegroups.com
> >>> 详情:http://groups.google.com/group/openresty
> >>> 官网:http://openresty.org/
> >>> 仓库:https://github.com/agentzh/ngx_openresty
> >>> 建议: 提问的智慧http://wiki.woodpecker.org.cn/moin/AskForHelp
> >>> 教程:http://agentzh.org/misc/nginx/agentzh-nginx-tutorials-zhcn.html
>
> >> --
> >> 邮件自: 列表“openresty”,专用于技术讨论!
> >> 发言: 请发邮件到 open...@googlegroups.com
> >> 退订: 请发邮件至 openresty+...@googlegroups.com
> >> 详情:http://groups.google.com/group/openresty
> >> 官网:http://openresty.org/
> >> 仓库:https://github.com/agentzh/ngx_openresty
> >> 建议: 提问的智慧http://wiki.woodpecker.org.cn/moin/AskForHelp
> >> 教程:http://agentzh.org/misc/nginx/agentzh-nginx-tutorials-zhcn.html
>
> > --
> > 邮件自: 列表“openresty”,专用于技术讨论!
> > 发言: 请发邮件到 open...@googlegroups.com
> > 退订: 请发邮件至 openresty+...@googlegroups.com
> > 详情:http://groups.google.com/group/openresty
> > 官网:http://openresty.org/
> > 仓库:https://github.com/agentzh/ngx_openresty
> > 建议: 提问的智慧http://wiki.woodpecker.org.cn/moin/AskForHelp