shard-crystal-db/spec
Jeremy Woertink b1299fcada
Raise a specific class error instead of string literal (#156)
* Raise a specific class error instead of string literal when the type returned doesn't match the type expected. Allows for drivers to catch the specific error.

* Add ResultSet#next_column_index

* Add shared specs for next_column_index

* Add properties to ColumnTypeMismatchError

* Add shared specs for ColumnTypeMismatchError

* Fix specs

Co-authored-by: Brian J. Cardiff <bcardiff@gmail.com>
2021-10-12 20:49:26 -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 Raise a specific class error instead of string literal (#156) 2021-10-12 20:49:26 -03:00
database_spec.cr feat(error): close resources on resource lost (#155) 2021-09-10 08:36:01 -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 Raise a specific class error instead of string literal (#156) 2021-10-12 20:49:26 -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 fix(pool): returning closed resources to the pool (#154) 2021-09-06 19:02:43 -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