Commit Graph

  • da2831c17d validate boolean option in connection string. proper downcase. #25 Brian J. Cardiff 2016-12-05 10:38:46 -0300
  • 4721ecbf6b make Connection#prepared_statements? readonly Brian J. Cardiff 2016-12-04 15:19:15 -0300
  • d55b088216 Refactor Database and Connection dsl methods. Update docs. Brian J. Cardiff 2016-12-04 15:14:43 -0300
  • 543592a337 make pool_prepared_statements always prepare statement in connection Brian J. Cardiff 2016-12-03 20:59:14 -0300
  • 2cab0b37f5 refactor prepared and unprepared pool statements Brian J. Cardiff 2016-12-03 16:03:50 -0300
  • 0593f63dbb add pool unprepared statements Brian J. Cardiff 2016-12-03 15:56:03 -0300
  • 9ef9d19d1d add prepared_statements option to database Brian J. Cardiff 2016-12-02 22:09:27 -0300
  • fe0ed55ef9 introduce unprepared statements Brian J. Cardiff 2016-11-29 20:14:07 -0300
  • 73108c169e v0.2.2 v0.2.2 Ary Borenszweig 2016-12-06 23:33:27 -0300
  • 2073a1de91 Use Slice.empty v0.2.1 Ary Borenszweig 2016-12-06 23:27:15 -0300
  • 695cd5f251 added types for int8, int16, Time for mysql driver Cris Ward 2016-12-04 20:36:28 +0000
  • cd10dabba2 default max_pool_size to 0 = unlimited Brian J. Cardiff 2016-10-21 21:49:16 -0300
  • a047e243df default max_pool_size to 0 = unlimited #23 Brian J. Cardiff 2016-10-21 21:49:16 -0300
  • 83650f544d support Time and Bool in base driver #24 Dru Jensen 2016-11-06 09:03:21 -0800
  • 79ec638de4 update changelog. improve formatting Brian J. Cardiff 2016-10-22 21:52:15 -0300
  • df0ec5723f because it's never too late for a changelog Brian J. Cardiff 2016-10-22 20:05:15 -0300
  • 3a7c801ece allow new connections right away if pool can be increased Brian J. Cardiff 2016-10-22 19:14:18 -0300
  • 56aa10c54d Better error message when requesting a driver that was not found. Fixes #21 Ary Borenszweig 2016-10-21 11:24:32 -0300
  • 0735870418 bump version 0.2.0 v0.2.0 Brian J. Cardiff 2016-10-20 18:41:57 -0300
  • d7fdf1eada Release DB connection if an exception occurs during execution of a query Gustavo Giráldez 2016-09-28 16:45:38 -0300
  • 4f724475e0 Fixed module reference inside macro v0.1.1 Ary Borenszweig 2016-09-28 14:46:34 -0300
  • ae6a68f00e Use forall Ary Borenszweig 2016-09-19 19:20:18 -0300
  • 751be7aa6a Merge branch 'feature/pool' Brian J. Cardiff 2016-09-13 01:42:24 -0300
  • a62c90d092 remove connection from pool if explicitly closed #12 Brian J. Cardiff 2016-09-13 01:36:49 -0300
  • ea2a107069 allow releasing connections of the pool from pool_statements Brian J. Cardiff 2016-09-12 14:35:21 -0300
  • 4ddaf9df53 Merged branch ci-format-check into master Brian J. Cardiff 2016-09-06 13:26:33 -0300
  • 2db12d99f5 fix formatting issues Brian J. Cardiff 2016-09-06 13:24:57 -0300
  • 17ed0829b4 enforce tool format in .travis.yml Brian J. Cardiff 2016-09-06 12:58:40 -0300
  • 6745ea956f migrate to crystal 0.19 Brian J. Cardiff 2016-09-04 20:11:50 -0300
  • d3606831f3 Use select to distinguish between timeout and resource availability Brian J. Cardiff 2016-09-02 17:27:22 -0300
  • 47e7d826e8 Add connection retry logic to connection pool Brian J. Cardiff 2016-08-31 17:32:01 -0300
  • dbf7c94ef4 release references to resources in pool. Brian J. Cardiff 2016-08-31 14:45:32 -0300
  • 598aca50af Merged branch feature/pool_statement into feature/pool Brian J. Cardiff 2016-08-30 16:42:23 -0300
  • 9c9176608d avoid caching statements in pool_statement Brian J. Cardiff 2016-08-30 16:40:52 -0300
  • f568e4506d add cache of pool statements per query Brian J. Cardiff 2016-08-30 16:20:18 -0300
  • 09b3b4bc01 minor code cleanup Brian J. Cardiff 2016-08-30 15:22:27 -0300
  • 75aa821f5f make Database return PoolStatement Brian J. Cardiff 2016-08-29 16:56:34 -0300
  • 6a0a450622 make statement_specs run over a single connection Brian J. Cardiff 2016-08-29 16:50:37 -0300
  • 6e94536a91 clean up forward declaration of Database and Statement Brian J. Cardiff 2016-08-29 16:48:59 -0300
  • 8d891a5a4e changes needed due to 3c91978d36 Brian J. Cardiff 2016-08-29 13:14:47 -0300
  • 3c91978d36 Merged branch master into feature/pool Brian J. Cardiff 2016-08-29 12:57:42 -0300
  • 325fa9d4ae ensure the connection is released after exec Brian J. Cardiff 2016-08-29 01:23:20 -0300
  • bed461c01b allow connection initialization Brian J. Cardiff 2016-08-18 00:55:43 -0300
  • b5112d9a48 Add `ResultSet#column_names`. Fixes #11 Ary Borenszweig 2016-07-17 21:50:52 -0300
  • 1a4622ee59 Allow passing named arguments to DB.mapping Ary Borenszweig 2016-07-15 11:54:09 -0300
  • 1cce4685ff Make DB::Pool accept a block Ary Borenszweig 2016-07-11 15:38:31 -0300
  • fff67e86a0 Fix using_connection Ary Borenszweig 2016-07-11 12:56:40 -0300
  • a2c22c16cf allow DB to use a connection pool. allow Driver to parse connection pool options for extensibility. fix waiting_resource counter after a timeout was generated. Brian J. Cardiff 2016-07-07 15:50:09 -0300
  • b8cabee956 surround waiting_resource counter with a mutex for future thread support. Brian J. Cardiff 2016-07-07 14:48:58 -0300
  • 421996b952 resource pool implementation with * max_pool_size * initial_pool_size * max_idle_pool_size * checkout_timeout configuration options Brian J. Cardiff 2016-07-05 15:21:39 -0300
  • 8a913d1ef2 Merge pull request #2 from spalladino/feature/db-mapping Brian J. Cardiff 2016-07-04 13:05:08 -0300
  • 9ca0b19d9e Support mappable classes in query_one and query_all methods #2 Santiago Palladino 2016-07-04 12:46:45 -0300
  • 99352d9d2d Remove unneeded typecast when advancing a column in mapping macro Santiago Palladino 2016-07-04 12:44:31 -0300
  • 552b6e12b4 Rebase to latest DB version and upgrade to Crystal 0.18 Santiago Palladino 2016-07-04 12:13:39 -0300
  • 7fcedc6711 Database mapping macro Santiago Palladino 2016-03-28 20:45:07 -0300
  • 6b065bd6b6 Handle different number of columns in dummy driver Santiago Palladino 2016-03-28 20:31:42 -0300
  • 5773faaa5c Enumerate columns in result_set Santiago Palladino 2016-03-28 19:29:15 -0300
  • 344804dd79 Merge pull request #9 from crystal-lang/feature/simple_read Ary Borenszweig 2016-06-30 16:00:33 -0300
  • 9c88f718e8 Require ResultSet to just implement `read`, optionally implementing `read(T.class)`. Fixes #5 #9 Ary Borenszweig 2016-06-28 14:02:08 -0300
  • 038ffef33a Don't use tap so return value is that of `yield` Ary Borenszweig 2016-06-29 16:54:16 -0300
  • 72431bb1d8 Make sure to release a statmenet in case of an exception Ary Borenszweig 2016-06-29 15:08:53 -0300
  • 2fc3f66a00 Make sure to return the connection to the pool in case of an exception preparing a query Ary Borenszweig 2016-06-29 15:01:26 -0300
  • 22a5a41534 update readme Brian J. Cardiff 2016-06-27 14:11:54 -0300
  • 61c4b03252 update README.md due to transfer to crystal-lang v0.1.0 Brian J. Cardiff 2016-06-24 17:27:06 -0300
  • 56f5bffe31 Update README.md Brian J. Cardiff 2016-06-24 10:59:33 -0300
  • 6838784f7b fix #1. avoid marking as closed if do_close raise exception Brian J. Cardiff 2016-06-24 10:54:30 -0300
  • 933014c1aa fix bug related to Slice(T).new(0). It was messing with the data in the stack Brian J. Cardiff 2016-06-23 22:36:34 -0300
  • b2da4f3f6e allow scalar to return custom types Brian J. Cardiff 2016-06-23 22:19:53 -0300
  • 34ae9d5775 avoid messing with finalize cycle in Disposable. ensure statements are closed when connection is closed Brian J. Cardiff 2016-06-23 22:07:59 -0300
  • f836bbfccb add Database#using_connection to get a connection from the pool and return it when work is done. Brian J. Cardiff 2016-06-23 17:27:30 -0300
  • 22db7d1043 fixes #5. Merge branch 'feature/5-type-extensibility' Brian J. Cardiff 2016-06-23 15:12:20 -0300
  • 8025ecaa13 update Slice(UInt8) to Bytes Brian J. Cardiff 2016-06-22 14:10:09 -0300
  • 11e24e1c65 #5 Make sure queries (insert and query) work with any type Brian J. Cardiff 2016-06-22 00:44:16 -0300
  • c5d7778a0d update DB::ExecResult#rows_affected to Int64 Brian J. Cardiff 2016-06-21 18:31:13 -0300
  • 9f3f0a9836 #5 remove read_object. allow read / read? to receive any type Brian J. Cardiff 2016-06-21 12:10:09 -0300
  • 0daa1c18d7 DRY DB::TYPES and DB::Any Brian J. Cardiff 2016-06-21 12:08:51 -0300
  • 76e3a35d59 allow exec to receive any object arguments Brian J. Cardiff 2016-04-15 01:40:27 -0300
  • d4b2046a65 refactor and add specs for query without blocks Brian J. Cardiff 2016-04-14 18:50:44 -0300
  • 3464a1d1cc allow query to receive any object arguments Brian J. Cardiff 2016-04-14 17:33:39 -0300
  • 5b23114095 add ResultSet#read_object Brian J. Cardiff 2016-04-14 15:18:09 -0300
  • 312609b722 allow specs to use multiple drivers Brian J. Cardiff 2016-04-14 14:24:11 -0300
  • d69555b372 make Nil a proper column type Brian J. Cardiff 2016-04-10 21:21:10 +0300
  • f834b0f8a6 Updated to Crystal 0.17.4 Ary Borenszweig 2016-06-16 12:14:57 -0300
  • 6ee8c90ba7 forward declarations for docrystal.org (?) Brian J. Cardiff 2016-02-26 00:13:29 -0300
  • 71629f2a6f travis badge fix roadmap list Brian J. Cardiff 2016-02-26 00:06:37 -0300
  • c6e2a51482 add readme and version Brian J. Cardiff 2016-02-25 23:53:23 -0300
  • 44559f6f95 move spec and src files to a shardy way Brian J. Cardiff 2016-02-25 22:37:10 -0300
  • 928c1517dc update to 0.12 features clarify expected protocol with ResultSet in docs minor refactors suggested Brian J. Cardiff 2016-02-19 18:42:30 -0300
  • 2cb37d374c ensure db is closed after block avoid GC Warning Brian J. Cardiff 2016-02-19 12:39:09 -0300
  • ee21fcfea6 update docs Brian J. Cardiff 2016-02-15 21:56:45 -0300
  • 0cb7adabdb full type name in restriction Brian J. Cardiff 2016-02-03 21:51:32 -0300
  • 4ed7f28fe6 ensure exec and scalar release connection ensure exec, query can be executed with Enumerable(Any) update db doc sample Brian J. Cardiff 2016-02-03 21:28:53 -0300
  • d45427dfdd expose database in connection get/return from pool while result set is been used. still single connection pool Brian J. Cardiff 2016-02-03 19:30:51 -0300
  • fa111fd698 add statement cache in connection. hide methods from api Brian J. Cardiff 2016-02-03 18:46:37 -0300
  • 562d5076bf use URI as connection string Brian J. Cardiff 2016-02-03 18:29:09 -0300
  • b92d08bf74 refactor db disposables Brian J. Cardiff 2016-02-03 17:10:03 -0300
  • 782a2ee0e2 hide #prepare from api. Brian J. Cardiff 2016-02-03 16:57:54 -0300
  • 6a5b2a8758 assert connection is closed after db is used. tidy up close methods Brian J. Cardiff 2016-02-03 00:36:50 -0300
  • 3598dddb65 split perform_query and perform_exec add DB::ExecResult to have a concurrency safety exec result remove connection string from abstract DB::Connection Brian J. Cardiff 2016-02-01 23:02:04 -0300
  • 67fe5c9aae leave a single scalar value returns DB::Any Brian J. Cardiff 2016-02-01 22:33:58 -0300