Commit Graph

315 Commits

Author SHA1 Message Date
Jan Vlčinský 03759f11e9 Merge pull request #147 from vlcinsky/test_trans_refactor
tests/test_transactions.py refactored
2018-04-28 22:16:38 +02:00
Jan Vlčinský 37a1f72a22 Merge pull request #148 from mcdallas/db-one
Make .one() use .first() under the hood
2018-04-27 21:59:42 +02:00
mcdallas abdeb7e8c8 reuse code from .first() in .one() 2018-04-27 14:44:35 +01: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
Jan Vlčinský 6b62ec881b Merge pull request #146 from hugovk/rm-eol
Drop EOL Python 2.6 and 3.3
2018-04-26 17:34:50 +02:00
Hugo 59bb3c6da9 Use automatic formatters 2018-04-26 16:24:45 +03:00
Hugo 8e75acf23f Remove EOL Python 2.6 and 3.3, add 3.6 2018-04-26 16:24:16 +03:00
Jan Vlčinský 6788aa1c09 Merge pull request #143 from vlcinsky/fix_xlsx
Fix xlsx: fix #142
2018-04-26 15:04:02 +02:00
Jan Vlčinský 74711d2d32 Merge pull request #140 from vlcinsky/travis
Travis (rebuilt to use tox). Fix #139
2018-04-26 15:03:06 +02:00
Jan Vlčinský 9cf67325e3 Merge pull request #138 from vlcinsky/tox
Tox
2018-04-26 15:02:29 +02:00
Jan Vlčinský 5e59c24c60 Merge pull request #136 from vlcinsky/write_bytes
Write bytes: fix #78 writing bytes under python3
2018-04-26 15:01:36 +02:00
Jan Vlčinský eb59a8fe61 Merge pull request #135 from vlcinsky/missing_imports
Missing imports
2018-04-26 15:00:47 +02:00
Jan Vlčinský edace4fa8c Merge pull request #134 from vlcinsky/fix_133
CLI handling. Fix #133, check <format> is supported one.
2018-04-26 14:59:34 +02:00
Jan Vlcinsky a096d9a9b5 Fix #142: failure to export to XLSX (downgrade openpyxl)
This fix shall be removed as soon as tablib gets the problem resolved.
2018-04-15 00:30:36 +02:00
Jan Vlcinsky b064c3bd89 make add testall (tox), fix test (install --dev). Upd. Pipfile.* 2018-04-14 00:40:05 +02:00
Jan Vlcinsky 76afc6fd67 Removed support for python 2.6. Fix #141 2018-04-14 00:09:07 +02:00
Jan Vlcinsky 55fe42a4ae Fix SQLAlchemy version for python 2.6
Tests revealed, that under python 2.6, only SQLAlchemy<1.1 is supported
2018-04-13 23:57:24 +02:00
Jan Vlcinsky 4d90d6d418 .travis requires tests under all python versions declared by setup.py 2018-04-13 23:41:10 +02:00
Jan Vlcinsky 61b2b68bd5 Remove utf-8 chars "..." from setup.py 2018-04-13 23:33:39 +02:00
Jan Vlcinsky 1f6cf5f644 .travis modified to use tox 2018-04-13 23:28:51 +02:00
Jan Vlcinsky 84ed3f1a55 Added tox.ini (for local tests only at the moment). Fix #137 2018-04-13 22:59:03 +02:00
Jan Vlcinsky 598af0df4a Fix #78: printing resulting bytes under python3
Binary outputs were printed as repr with b'abcde' instead as real bytes.
2018-04-13 22:33:53 +02:00
Jan Vlcinsky fd5f379e45 Handle failures caused by missing package (required by db or format) 2018-04-12 22:17:39 +02:00
Jan Vlcinsky d3ba8526b3 CLI handling. Fix #133, check <format> is supported one. 2018-04-12 21:27:54 +02:00
kennethreitz f2c5307d76 Merge pull request #127 from Tethik/first_one_pettyness
RecordCollection.first and RecordCollection.one
2018-02-15 18:06:25 -06:00
Joakim Uddholm d5adf51cfe More helpful error message for RecordCollection.one 2018-02-15 00:49:59 +01: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
kennethreitz 76556f91c4 Merge pull request #126 from Tethik/master
Add scalar method
2018-02-13 07:38:22 -06:00
Joakim Uddholm d1b76caaab Add scalar method to RecordCollection 2018-02-11 17:33:39 +01:00
kennethreitz cf131a971f Merge pull request #118 from dschep/master
Raise an error if selecting column that exists more than once
2017-12-11 07:14:50 -05:00
kennethreitz 978a3fda37 Merge pull request #120 from rebornwwp/master
Fix multiple Single quotation mark error
2017-12-11 07:13:50 -05:00
wanpeng b21aa145d1 Fix multiple Single quotation mark error 2017-12-11 20:11:40 +08:00
Greg Troszak 3d47e45f1e Throw exception if db closed. 2017-12-09 13:14:59 -08:00
Greg Troszak 522199af20 Clean up. 2017-12-09 08:48:14 -08: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
kennethreitz fcd41c36c9 v5.3
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2017-09-28 18:55:39 -04:00
kennethreitz 024a1fbc03 last makefile change
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2017-09-17 11:13:46 -04:00
kennethreitz 5d2d4eb78f improvements to ci, hopefully
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2017-09-17 11:10:27 -04:00
kennethreitz 1fe34f3af6 3.6
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2017-09-17 11:05:45 -04:00
kennethreitz c35b357059 make travis magically work, hopefully
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2017-09-17 11:05:24 -04:00
kennethreitz a305510dca sp
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2017-09-17 10:41:32 -04:00
kennethreitz d1b5b7f96d add some extras for databases
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2017-09-17 10:40:05 -04:00
kennethreitz d3cecff0b1 Merge branch 'master' of github.com:kennethreitz/records 2017-09-17 10:37:00 -04:00
kennethreitz 4da28d91cf migrate to pipfile
fixes #114

Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2017-09-17 10:36:52 -04:00
kennethreitz b75bcc26ae Update README.rst 2017-09-05 12:59:44 -04:00
kennethreitz 984cfdace1 v0.5.2
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
v0.5.2
2017-09-02 14:06:28 -04:00