Hi Kamil,
Thank you for your initial thoughts, adding the syntax highlighting, and
the suggestion to use the splat operator, it's really appreciated.
Good to know about mysqli_execute() not actually being deprecated, I'll try
to think of a different name, maybe mysql::run(), to keep it short
(suggestions welcome).
It's a shame supporting both libraries would be tricky; I'd like to avoid
an argument about dropping support for libmysql client (tbh, I'm not sure
what the advantages are, maybe automatic reconnect? licensing?).
With binding type guessing, that can be removed, 's' is fine for most
values. I'm just going on the basis that a provided integer could stay as
an integer as it's sent to the server. My limited understanding is that it
would save a few bytes in the request; might avoid some type conversion
issues (int>string>int); and, if an integer was provided for a text field,
the MySQL server can do the conversion anyway.
As to the state of mysqli code being written (and similar issues), I do
have an idea on how to fix, but that's a bit more of a long term thing
(where I need to convince everyone it's worth it), and I need the "right
way" to be so much easier to do.
Thanks again,
Craig
On Sat, 26 Dec 2020 at 15:13, Kamil Tekiela <tekiela246@gmail.com> wrote: