shard-crystal-db/spec
Brian J. Cardiff 7253551849
Add logging for executing queries (#134)
* 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>
2020-09-25 14:49:50 -03:00
..
support Allow DB::Pool to be used a generic connection pool (#131) 2020-09-14 10:49:00 -03:00
custom_drivers_types_spec.cr Add logging for executing queries (#134) 2020-09-25 14:49:50 -03:00
database_spec.cr Fix mutex deadlock in setup_connection (#128) 2020-09-14 10:55:18 -03:00
db_spec.cr Introduce DB::ConnectionContext (#44) 2017-03-20 15:08:30 -03:00
disposable_spec.cr fix #1. avoid marking as closed if do_close raise exception 2016-06-24 10:54:30 -03:00
dummy_driver.cr Add logging for executing queries (#134) 2020-09-25 14:49:50 -03:00
dummy_driver_spec.cr Use DB::NoResultsError on QueryMethods (#125) 2020-04-06 18:36:37 -03:00
http_client_pool_spec.cr Allow DB::Pool to be used a generic connection pool (#131) 2020-09-14 10:49:00 -03:00
mapping_spec.cr Updates for crystal 0.24.0 2017-12-29 20:13:34 -03:00
pool_spec.cr Add before_checkout/after_release callbacks for resources in pool (#36) 2017-01-16 16:47:58 -03:00
result_set_spec.cr Add `ResultSet#column_names`. Fixes #11 2016-07-17 21:50:52 -03:00
save_point_transaction_spec.cr specs to ensure connection is not returned to pool in nested transaction 2016-12-14 10:57:12 -03:00
serializable_spec.cr Add `DB::Serializable` (#115) 2019-10-31 11:34:23 -03:00
spec_helper.cr move spec and src files to a shardy way 2016-02-25 22:37:10 -03:00
statement_spec.cr Add logging for executing queries (#134) 2020-09-25 14:49:50 -03:00
transaction_spec.cr allow raise after explicit rollback within #transaction(&block) 2016-12-14 11:37:49 -03:00