Stefan Wehrmeyer
046f3434ff
Remove polyfill for Python < 2.7
2019-03-09 11:39:00 +01:00
Stefan Wehrmeyer
90e60857a2
Add Python 3.7 to setup.py
...
Closes #287
2019-03-09 11:38:50 +01:00
Simon Conseil
918480138b
Add missing methods in Table api doc
2019-02-15 15:04:16 +01:00
Andrey Alekseenko
25477717bc
Fix bug when UPSERTing a column named 'id'
2019-02-14 22:35:47 -05:00
Friedrich Lindenberg
22b64ee480
Bump version: 1.1.1 → 1.1.2
2019-02-07 10:49:52 +01:00
Friedrich Lindenberg
bce5a614b2
Merge pull request #280 from remorses/removed-normality-package
...
removed unused package
2019-02-07 10:48:28 +01:00
Tommaso De Rossi
521bd66afd
removed unused normality package from setup.py
2019-02-06 12:51:16 +01:00
Friedrich Lindenberg
53e72ef6a8
Bump version: 1.1.0 → 1.1.1
2019-01-31 18:38:30 +01:00
Friedrich Lindenberg
bc1ac231f3
fix actual test failure
2019-01-31 18:22:42 +01:00
Friedrich Lindenberg
75ff90554b
set distro
2019-01-31 18:19:09 +01:00
Friedrich Lindenberg
8324350f2e
Try to fix up tests, Python 3.8 warnings
2019-01-31 14:56:19 +01:00
zach valenta
a9433073da
fix typo
2019-01-22 22:09:36 -05:00
Friedrich Lindenberg
163e6554cc
Merge pull request #265 from saimn/distinct
...
Add support for advanced queries in distinct
2018-10-04 16:00:13 +02:00
Simon Conseil
c69827de7c
Add support for advanced queries in distinct
...
Fix #263
2018-09-26 17:36:09 +02:00
Stefan Wehrmeyer
7fc4664790
Merge pull request #264 from saimn/ipython-completion
...
Complete table names with IPython
2018-09-26 17:22:40 +02:00
Simon Conseil
c36b0f346b
Complete table names with IPython
2018-09-26 17:11:08 +02:00
Friedrich Lindenberg
0a2f7c0799
Merge pull request #256 from thelittlebug/dsl-find-feature
...
add find operators
2018-07-08 11:47:59 -04:00
Friedrich Lindenberg
7122b7b7d3
Merge pull request #257 from mmajewsk/master
...
Update util.py - fix ensure_tuple instance check
2018-06-25 09:36:53 +02:00
mwmajewsk
bcd20c7eca
Update util.py - fix ensure_tuple instance check
...
doing isinstance(obj, Sequence) makes calls with keys of dict impossible
Example:
Returns
```
d = {'a':'a', 'b':'b'}
table.upsert(values, d.keys())
```
`dict_keys(['a', 'b'])` is not of instance Sequence, but Iterable, therefore `ensure_tuple(dict_keys(['a', 'b']))` returns (dict_keys(['a', 'b']),)
which leads to invalid iteration.
2018-06-20 22:44:49 +02:00
Unknown
45e3ec0037
fix wrong clauses parameter false to sqlalchemy's false()
2018-06-14 07:03:38 +02:00
Unknown
f9a0f6de60
change wrong usage of sets to dicts
2018-06-14 07:02:45 +02:00
Unknown
7746e2529b
convert unchangeable lists to tuples
2018-06-14 07:01:35 +02:00
Unknown
5829fcc366
remove unused between import
2018-06-13 03:35:24 +02:00
Unknown
f9bb652034
add find operators
2018-06-13 02:29:32 +02:00
Friedrich Lindenberg
38a59b921e
Bump version: 1.0.8 → 1.1.0
2018-05-29 22:12:56 +03:00
Friedrich Lindenberg
6d1f42f48c
begin using bumpversion.
2018-05-29 22:12:48 +03:00
Friedrich Lindenberg
2b2813c7fe
fix lint
2018-05-29 22:05:53 +03:00
Friedrich Lindenberg
881127880a
Pad missing columns. Fixes #252 .
2018-05-29 21:55:25 +03:00
Friedrich Lindenberg
f04629825f
Merge pull request #255 from paulfurley/return-iterator-if-table-doesnt-exist
...
find(): if table doesn't exist, return an iterator
2018-05-29 21:34:15 +03:00
Paul M Furley
c414f85df9
find(): if table doesn't exist, return an iterator
...
... rather than []
If a table exists, you can treat the output of `find` as an iterator,
specifically you can call `next(find(...))`:
```
>>> db = dataset.connect('sqlite:///:memory1:')
>>> table = db['table_which_exists']
>>> table.insert({'foo': 'x'})
>>> next(table.find(foo='x')) # no problem
```
But if the table hasn't been created yet, `find(...)` returns an empty list,
which you can't call `next()` on:
```
>>> db = dataset.connect('sqlite:///:memory2:')
>>> table = db_no_table['table_which_doesnt_exis']
>>> next(table.find(foo='x'))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: 'list' object is not an iterator
```
^^^ rather than a `TypeError`, I'd expect to get a `StopIteration`
exception.
2018-05-29 18:07:32 +01:00
Friedrich Lindenberg
aa5dad5b80
Merge pull request #250 from paulfurley/patch-1
...
In `create_column` docs, signpost the Types class
2018-05-28 10:37:01 +02:00
Paul M Furley
a40341abaa
in create_column docs, signpost the Types class
2018-05-17 15:04:30 +01:00
Friedrich Lindenberg
a64e2f2fee
Merge pull request #231 from j-e-d/patch-1
...
Remove link to old documentation
2018-05-09 12:31:31 +02:00
Friedrich Lindenberg
233a735336
up version
2018-04-04 10:43:51 +02:00
Friedrich Lindenberg
66fd7ce173
make sure all records have the same fields.
2018-04-04 10:43:19 +02:00
Friedrich Lindenberg
9d99ed3e29
Add helper class for chunked inserts.
2018-04-04 09:34:39 +02:00
Friedrich Lindenberg
0d9b2877e2
reflect table again, hoping that helps with sync errors
2018-02-18 10:22:32 +01:00
Friedrich Lindenberg
6a65510642
Merge pull request #236 from MatthewScholefield/bugfix/data-export-docs
...
Fix Export Data documentation
2018-01-16 08:22:11 -05:00
Matthew D. Scholefield
81a6f6e4f8
Fix Export Data documentation
2018-01-13 11:18:05 -06:00
Friedrich Lindenberg
bce7b31b29
fix #234
2018-01-03 12:22:33 +01:00
Friedrich Lindenberg
2cf9da068a
fix flake8 complaints
2017-12-05 17:21:08 +01:00
Friedrich Lindenberg
db9729a228
try to fix tests
2017-12-04 23:29:24 +01:00
Friedrich Lindenberg
8226e51408
option for streamed responses.
2017-12-04 23:22:08 +01:00
Juan E. D
cc190eea41
Remove link to old documentation
2017-11-26 11:02:21 -03:00
Friedrich Lindenberg
dbc1edeca9
cleanup imports
2017-10-25 23:06:55 +02:00
Friedrich Lindenberg
f2e62606c7
new version
2017-10-25 23:06:31 +02:00
Friedrich Lindenberg
7a69baf491
Merge pull request #224 from emanuelfeld/master
...
Check if primary column on first _sync_table call
2017-09-30 12:01:14 +02:00
Stefan Wehrmeyer
da901efbf7
Remove Python 2.6 support code
2017-09-29 14:11:07 +02:00
Stefan Wehrmeyer
1fd2a15273
Make clean and test Phony targets
2017-09-29 14:10:32 +02:00
Stefan Wehrmeyer
e9aa9298f0
Drop unicode prefix
2017-09-29 14:10:17 +02:00