* Add logging for executing queries
Arguments are translated to Log::Metadata::Value via DB::Statement#arg_to_log method.
DB::Statement#before_query_or_exec & after_query_or_exec protected methods can be used to hook and run around the statement execution
* Move the metadata converter to a module
* Replace before/after with def_around_query_or_exec macro
* Update src/db/enumerable_concat.cr
Co-authored-by: Ary Borenszweig <asterite@gmail.com>
Co-authored-by: Ary Borenszweig <asterite@gmail.com>
* use ?prepared_statements=true|false on connection string (default: true)
* make inmutable state in database
* make mutable state in connection
* change Connection#build to use the current prepared_statements flag to build prepared or unprepared statements.