From 76e705417abed71a1b7571bd0cf3435df38d67d0 Mon Sep 17 00:00:00 2001 From: Cosmin Apreutesei Date: Wed, 8 Dec 2021 07:09:59 +0200 Subject: [PATCH] unimportant --- mysql_client.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mysql_client.md b/mysql_client.md index ea3577b..5d44155 100644 --- a/mysql_client.md +++ b/mysql_client.md @@ -90,10 +90,10 @@ The `options` arg can contain: (but `#cols` will). * `to_array = true` -- return an array of values for single-column results. * `null_value = val` -- value to use for `null` (defaults to `nil`). - * `field_attrs = {name -> attr}` -- extra field attributes. can also be - a function which will be called with `field_attrs(cn, fields, opt)` + * `field_attrs = {name -> attr}` -- extra field attributes. It can also be + a function which will be called as `field_attrs(cn, fields, opt)` as soon as field metadata is received but before rows are received - (so you can even set a custom `to_lua` to certain fields). + (so you can even set a custom `to_lua` for particular fields). For queries that return a result set, it returns an array of rows. For other queries it returns a Lua table with information such as