Jamie Gaskins
291b65b853
Allow DB::Pool to be used a generic connection pool ( #131 )
...
* Allow DB::Pool to be a generic connection pool
* Use fully qualified class name for consistency
Co-authored-by: Brian J. Cardiff <bcardiff@gmail.com>
* Wrap only the necessary code in an `ensure`
* Add spec for http client pool
* Fix ICE in crystal-sqlite3
Co-authored-by: Brian J. Cardiff <bcardiff@gmail.com>
2020-09-14 10:49:00 -03:00
Brian J. Cardiff
ed686ad301
Release 0.9.0 ( #126 )
2020-04-06 20:11:41 -03:00
Brian J. Cardiff
511fe20253
Use DB::NoResultsError on QueryMethods ( #125 )
2020-04-06 18:36:37 -03:00
Brian J. Cardiff
7543908733
Merge pull request #124 from crystal-lang/crystal/0.34.0
...
Crystal 0.34.0 support
2020-04-06 18:14:40 -03:00
Brian J. Cardiff
f4b298d3a5
Use select / timeout in Crystal 0.34
2020-04-02 12:34:27 -03:00
Brian J. Cardiff
af200eac54
Comply exhaustive case check
...
Comply exhaustive case check
2020-04-02 12:34:27 -03:00
Jeremy Woertink
f08a4da60a
Add NoResultsError ( #121 )
2020-02-17 22:04:23 +01:00
Brian J. Cardiff
f128d6ddf3
Update README.md and docs for dynamic args ( #117 )
2020-01-14 10:29:54 -03:00
Brian J. Cardiff
7e83f8e26c
Release 0.8.0 ( #116 )
2019-12-11 17:38:42 -03:00
Nick Clifford
e1832fc359
Add DB::Serializable
( #115 )
2019-10-31 11:34:23 -03:00
Brian J. Cardiff
2b95d69e68
Release 0.7.0 ( #112 )
2019-09-20 17:37:29 -03:00
Johannes Müller
b3898ae2a2
Statement#exec and #query require named argument for array values ( #110 )
...
This change allows to use an array as single argument for #exec and
#query and #scalar methods. Before it was shadowed by the *args splat overload.
2019-09-20 17:23:09 -03:00
Brian J. Cardiff
af6d837bcd
Remove call to obsolete Spec.matches? ( #111 )
...
It was an optimization but it does not work (and is not needed) since the changes in spec for Crystal 0.31
2019-09-12 11:04:34 -03:00
Brian J. Cardiff
ff5c3263ad
Merge pull request #109 from crystal-lang/pool-lock
...
Rework pool lock logic to handle new connections context switches
2019-09-12 09:59:49 -03:00
Brian J. Cardiff
afad416417
Handle multiple fibers waiting for more resources than available
2019-09-11 18:25:40 -03:00
Brian J. Cardiff
5c1c1ab910
Handle inflight connections and rework state sync
2019-09-11 18:25:36 -03:00
Brian J. Cardiff
9275b22a30
Add pool stats
2019-09-11 17:53:39 -03:00
Brian J. Cardiff
dcd0af5ce8
Release 0.6.0
2019-08-02 12:06:53 -03:00
Brian J. Cardiff
adc755e5e4
Add type argument to QueryMethods module ( #108 )
2019-08-02 11:54:52 -03:00
Brian J. Cardiff
0100b47754
Documentation improvements ( #107 )
...
Closes #89
2019-07-02 10:01:17 -03:00
Jonathan
f14abc19fd
Fix Typo and references in docs ( #96 )
2019-06-26 09:55:07 -03:00
Brian J. Cardiff
fb34ffd89c
Add travis nightly ( #106 )
2019-06-25 13:51:38 -03:00
Johannes Müller
af916fbffb
Fix BeginTransaction#transaction error in rollback ( #101 )
...
When the rescued exception was caused by a protocol error, the
connection is in a corrupted state and executing the rollback
command might fail due to a subsequent protocol error - which is
irrelevant because the source of the corruption is described by
the original exception which must not be overlayed by a secondary one.
2019-04-11 13:53:55 -03:00
Gabriel Karczewski
11b16cf5bc
Correct grammar ( #99 )
2019-02-26 15:13:28 -03:00
Linas Juškevičius
0d54ea9a5a
Add the Cassandra driver ( #94 )
2018-11-20 10:14:17 -03:00
Brian J. Cardiff
2b7892eb3a
Release 0.5.1
2018-11-07 15:52:37 -03:00
Benjamin T
3820978820
query_methods.cr: Small typo fix in docs ( #76 )
2018-11-07 15:44:53 -03:00
Heaven31415
f70f251849
Fix README.md ( #82 )
2018-11-07 15:44:14 -03:00
Brian J. Cardiff
58c79d8cf3
Update .gitignore to latest template
2018-11-07 15:41:44 -03:00
Chris Hobbs
59802b7520
Merge pull request #87 from wontruefree/patch-1
...
doc update
2018-07-21 18:11:11 +01:00
Jack
51236495f6
doc update
...
typo fix
2018-07-21 02:01:55 -05:00
Rob David
c54fab415e
Fixes query_one? handling no rows ( #86 )
2018-07-11 00:47:39 +01:00
Brian J. Cardiff
be139c900c
Bump version 0.5.0. Release notes.
2017-12-29 20:20:37 -03:00
Brian J. Cardiff
ac083f430a
Updates for crystal 0.24.0
2017-12-29 20:13:34 -03:00
Brian J. Cardiff
790b587e3f
Bump version 0.4.4. Release notes.
2017-12-29 19:53:39 -03:00
Arthur Poulet
d55a34e851
Allow query results to be read as named tuples directly ( #56 )
2017-12-29 19:32:25 -03:00
Brian J. Cardiff
28b17b7dba
Update sqlite doc sample to use TEXT
...
Ref: #71
2017-11-13 10:56:33 -03:00
Hinrik Örn Sigurðsson
4ee820a537
Update sqlite readme sample to use TEXT ( #71 )
2017-11-13 10:52:07 -03:00
Brian J. Cardiff
437f8c39ec
Bump version 0.4.3. Release notes.
2017-11-07 23:30:34 -03:00
Brian J. Cardiff
839a7abb5e
Fix typo in comment
2017-11-07 23:23:06 -03:00
Lamonte
e40c19d195
Updated MappingException and Rollback derive from DB::Error ( #70 )
...
Make all db exceptions derive from DB::Error
2017-11-07 23:18:43 -03:00
Brian J. Cardiff
1e882e35d2
Docs: minor edit
2017-09-08 10:08:24 -03:00
Brian J. Cardiff
f4c1c3626b
Merge pull request #65 from crisward/patch-1
...
Release connection when query cannot be built
2017-09-08 10:03:51 -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
Brian J. Cardiff
28c6f3b715
bump version 0.4.2. Release notes.
2017-04-21 17:24:28 -03: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
912113d7fb
bump version 0.4.1. Release notes.
2017-04-10 13:45:24 -03:00
Brian J. Cardiff
39e17f82ca
Add #query_each . Fixes #18
2017-04-10 12:48:48 -03:00