openresty / lua-resty-mysql

Nonblocking Lua MySQL driver library for ngx_lua or OpenResty
708 stars 236 forks source link

Add a metatable with ordered column names #83

Open ubaldus opened 6 years ago

ubaldus commented 6 years ago

To allow column order reconstruction after a query.

agentzh commented 5 years ago

@ubaldus I don't quite follow your patch. It does not make sense to add the cols table as the metatable to rows. It's just logically wrong.

ubaldus commented 5 years ago

Hi Agentzh, the idea is to have an easy and quick access to the column names as retrieved by the sql query, is there a more efficient way to achieve the same result?

agentzh commented 5 years ago

@ubaldus I still do not understand your intention. Maybe you should elaborate with concrete examples?