sqlite 是读取本地文件的,nginx除了aio读取文件,还没有异步文件io的方案。
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
>
> >>>>> #xA0;--
> >>> Wendal Chen
> >>> GuangDong China
>
> >>> #xA0;#xA0;--
> Wendal Chen
> GuangDong China