Hello,
I'm currently building multiple modules following this doc https://blog.openresty.com/en/or-lua-module/ and want to ask how to share same MySQL connection instance between modules ? I tried to share with ngx.ctx variables but seems not working.
Tried also to pass variable as argument but not working.
I'm not sure that having db.connect and db.close on each module will be the effective way.