Commit Graph

287 Commits

Author SHA1 Message Date
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
kennethreitz e4031d8a61 Update README.rst 2017-09-02 14:05:39 -04:00
kennethreitz e00e630a3e Merge pull request #113 from dschep/master
Make pandas support optional, as it is with tablib
2017-09-02 14:04:54 -04:00
Daniel Schep b8691b0985 Make pandas support optional, as it is with tablib
For the same reasons as with kennethreitz/tablib#307, it's preferable
that pandas support not be included by default.

* pandas wheels weigh in at 130M which counts for a lot when working
with environments like AWS Lambda which are limited to 256M.
* Some people can't use wheels and having to compile pandas
siginificantly slows down their build proceses and CI pipelines.
2017-09-02 12:43:02 -04:00
kennethreitz ea98fbf3aa Merge pull request #112 from seanbehan/master
Fix indentation error
2017-09-02 00:54:00 -04:00
Sean Behan d7025002d6 Fix indentation error 2017-09-01 21:05:42 -04:00
kennethreitz 5e65bd8b66 Update HISTORY.rst 2017-09-01 15:52:36 -04:00
kennethreitz ecb1e17737 Update HISTORY.rst 2017-09-01 15:52:27 -04:00
kennethreitz d7648ba26e use tablib[pandas]
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
v0.5.1
2017-09-01 15:43:55 -04:00
kennethreitz 9ea2c75144 Update README.rst 2017-08-30 13:53:21 -04:00
kennethreitz dd581ff21a Update records.py 2017-08-30 13:51:20 -04:00
kennethreitz 431deb91f3 Merge pull request #110 from waldyrious/patch-2
LICENSE: add title
2017-08-30 13:43:32 -04:00
Waldir Pimenta 95d0a3389b LICENSE: add title
The title is not legally mandated, but for humans it's quite useful; it also works as additional metadata, and is part of the recommended license template text (see http://choosealicense.com/licenses/isc/ and https://opensource.org/licenses/isc-license)
2017-08-30 07:39:57 -01:00
kennethreitz 0a1b78184b Update README.rst 2017-08-28 10:14:05 -04:00
kennethreitz 386e47f0bf Update README.rst 2017-08-28 01:12:25 -04:00
kennethreitz 6461ecbbc9 Update README.rst 2017-08-27 23:12:53 -04:00
kennethreitz 6741096688 Update README.rst 2017-08-27 04:06:50 -04:00
kennethreitz 3d478e1506 Merge pull request #103 from restran/master
add support for bulk insert and update.
2017-08-27 04:04:33 -04:00
kennethreitz 4241bb7d95 Update README.rst 2017-08-27 04:01:20 -04:00
kennethreitz d3ec59349f Update README.rst 2017-08-27 04:00:34 -04:00
kennethreitz 118a944589 Update README.rst 2017-08-22 20:24:01 -04:00
kennethreitz 1e2e03b3fd cleanup 2017-07-28 22:16:44 -04:00
restran 0421d96a1a add support for bulk insert and update. 2017-04-18 15:58:04 +08:00
kennethreitz 0e4a6493d4 Merge pull request #97 from RazerM/fix_get_table_names
Reuse engine for get_table_names, use inspection instead of metadata reflection
2017-02-04 13:27:32 -06:00
kennethreitz 9ab584822b Merge pull request #99 from Stranger6667/simple-improvement
Return value immediately
2017-02-04 13:26:16 -06:00
kennethreitz 94cfc6c144 Merge pull request #101 from ragne/master
Fixed accidental StopIteration bubbling in RecordCollection.__iter__
2017-02-04 13:25:38 -06:00
Edward Makhlin 93cb81991a Fixed accidental StopIteration bubbling in RecordCollection.__iter__
For more info check this PEP: https://www.python.org/dev/peps/pep-0479/
2017-02-04 01:21:49 +03:00
Dmitry Dygalo 39283b6e07 Return value immediately 2017-01-25 10:05:39 +01:00
Frazer McLean aa6587f665 Remove unused import 2017-01-24 20:58:53 +01:00