20 Commits

Author SHA1 Message Date
kennethreitz 9e0d8bc244 Update SQLAlchemy version and modify test fixture 2024-03-29 19:37:25 -04:00
Jan Vlcinsky 069e530978 Added test case for issue #105 2018-04-27 00:06:58 +02:00
Jan Vlcinsky 2b436fb37f Added test case for issue #69 2018-04-26 23:19:55 +02:00
Jan Vlcinsky e2e73cbf5d tests/test_transactions.py refactored 2018-04-26 22:47:11 +02:00
Joakim Uddholm de6f80e70b First changed so that it doesn't check that it is the only row. Old behaviour is now in the new method 'one()' instead. 'scalar' uses old behaviour still 2018-02-15 00:42:07 +01:00
kennethreitz fe0ed3199d Merge pull request #119 from gdtroszak/proper-pooling
Properly handle SQLAlchemy connection pools
2018-02-13 07:39:42 -06:00
Joakim Uddholm d1b76caaab Add scalar method to RecordCollection 2018-02-11 17:33:39 +01:00
Greg Troszak 89ef187b3c Properly handle connection pools with txs. 2017-12-09 08:22:07 -08:00
Daniel Schep 01d0132c1f Raise an error if selecting column that exists more than once
This caused a pretty major bug for us

also, closes #108
2017-12-07 11:48:38 -05:00
Chad Whitacre 1217c9eea2 Fix regression in test name :o) 2016-11-21 19:46:42 -05:00
Chad Whitacre 7588c1ca2b Rename .one to .first 2016-11-21 19:41:22 -05:00
Chad Whitacre fafaca6a96 Fix tests for raising one(default) 2016-11-21 19:33:31 -05:00
Chad Whitacre 1d1d423245 Raise default if it's an exception 2016-11-21 19:33:30 -05:00
Chad Whitacre e7da94b249 Add a .one method to RecordCollections
It's a common use-case to want one and only one result from a query.
This adds a .one method to RecordCollections that is parallel to .all.
2016-11-21 19:33:00 -05:00
kennethreitz 9e65833117 Merge pull request #55 from Brobin/master
Retrieve attributes using super instead of hard-coding
2016-11-21 19:28:26 -05:00
Brian Hammond e46cacdd82 Not using pytest.raises anymore so no need to import pytest 2016-02-29 10:43:51 -05:00
Brian Hammond 67deca59a3 Add support for transactions 2016-02-29 10:39:13 -05:00
Brobin 5fe76db02a add test for Record __dir__ method 2016-02-23 15:54:40 -06:00
kennethreitz ab41e3ff51 RecordCollection 2016-02-13 01:57:16 -05:00
Harold Cooper fa3600df20 add regression tests for issues #13, #15, and the not-yet-fixed #34 2016-02-11 01:01:58 -05:00