支持connect("mysql://user:password@192.168.1.100:3360/db")或者parse("mysql://user:password@192.168.1.100:3360/db")不然得在conf里加好几个参数望春哥考虑下 --
Hello! 2015-10-27 16:29 GMT+08:00 YuanSheng Wang: > 这个改动量不大,你完全可以自己实现。其实我更倾向于放到 json 格式的配置文件里面去,各个字段拆开更容易维护(对人而言)。 > 毕竟不是每个人都能记住每个字段的先后顺序(人比机器贵的多)。 > > 2015-10-27 10:19 GMT+08:00 Wencan Deng <...@wencan.org>: >> 支持 >> connect("mysql://user:password@192.168.1.100:3360/db") >> 或者 >> parse("mysql://user:password@192.168.1.100:3360/db") >> >> 不然得在conf里加好几个参数 >> 望春哥考虑下 smallfish 老师有一个 pending 了很久的 pull request,正是实现这样的功能: https://github.com/openresty/lua-resty-mysql/pull/1 我一直没得空 review 和合并,真是不好意思。欢迎感兴趣的同学 review 并试用。 多谢! Regards, -agentzh