Brian J. Cardiff
c106775ea9
Simplifications and performance improvements ( #200 )
...
* Add pool_concurrency_test manual spec
Add MT connection count without Mutex
* Drop checkout_some, simpler pool_prepared statement
* Make pool statement a struct
* Drop StringKeyCache mutex
The StringKeyCache is now only used inside a connection. It's assumed that connections are not used concurrently with multiple queries.
* Drop do_close in pool statements
* Add specs and update comment
* Fix typo
2023-12-08 19:06:41 -03:00
Brian J. Cardiff
d3dd978e24
Allow statements to auto close when consumed if no cache ( #198 )
2023-11-29 18:39:44 -03:00
Brian J. Cardiff
da7494b5ba
Fix mt issues ( #178 )
2023-04-24 12:26:25 +02:00
Brian J. Cardiff
adc755e5e4
Add type argument to QueryMethods module ( #108 )
2019-08-02 11:54:52 -03:00
Brian J. Cardiff
966b5ac42b
Avoid tracking the connection if the statement failed to be built
2017-09-07 19:29:32 -03:00
Brian J. Cardiff
9b03aa6535
Release connection when unprepared statements can't be built
...
Add specs
Fix typo in docs
2017-09-07 19:21:36 -03:00
Cris Ward
4fe3884898
Release connection when query cannot be built
...
This was leaking connection when a query could not be build - ie if an invalid column name was used.
More info here - https://github.com/crystal-lang/crystal-mysql/issues/40
2017-07-27 15:08:05 +01:00
Nick Franken
5d5b901da1
Update to crystal 0.22.0 ( #50 )
...
* `WeakRef#target` was renamed to `WeakRef#value`
2017-04-21 11:14:42 -03:00
Brian J. Cardiff
543592a337
make pool_prepared_statements always prepare statement in connection
2016-12-07 01:50:06 -03:00
Brian J. Cardiff
2cab0b37f5
refactor prepared and unprepared pool statements
2016-12-07 01:50:06 -03:00