Commit Graph

229 Commits

Author SHA1 Message Date
Friedrich Lindenberg
382703f753 Merge pull request #46 from 3onyc/issue-34
Implement SQLite datetime fix (Fixes #34)
2014-01-05 09:39:48 -08:00
Friedrich Lindenberg
b431292188 fix test for ordereddicts 2014-01-05 18:36:11 +01:00
Friedrich Lindenberg
3abe9d2c8d Merge branch 'python-3' of github.com:stefanw/dataset into stefanw-python-3 2014-01-05 17:52:59 +01:00
Friedrich Lindenberg
ec9a2c56d1 Merge commit '2566581442eff9b17ee439296e7c4e9c232cee26' 2014-01-05 16:01:32 +01:00
Friedrich Lindenberg
1fe1b163f6 Release 0.3.15. 2014-01-05 15:55:37 +01:00
Friedrich Lindenberg
dc0a6f1f49 Merge pull request #60 from abhinav-upadhyay/fix-table-insert
Fix insert for tables that do not have any primary key.
2014-01-05 06:45:16 -08:00
Abhinav Upadhyay
508e025689 Fix insert for tables that do not have any primary key.
The insert method returns the value of the primary key for the inserted
row. But for tables that do not have any primary key, it raises an
IndexError, which is clearly wrong. At best it should return None in
such cases and avoid raising any exception.
2014-01-04 11:53:15 +05:30
Gregor Aisch
2566581442 using OrderedDict to preserve key order 2013-12-20 00:01:26 +01:00
Gregor Aisch
03cca31b5b added test for ordered keys 2013-12-19 23:46:10 +01:00
Stefan Wehrmeyer
0de0f0f95a Fix tests under Python 2.6
assertRaises is not a context manager under Py 2.6
2013-12-18 13:02:18 +01:00
Stefan Wehrmeyer
2eea58a64c Fix Python version detection for Python 2.6 2013-12-18 12:53:11 +01:00
Stefan Wehrmeyer
158e87152c Make argparse a Python 2.6 dependency 2013-12-18 12:35:35 +01:00
Stefan Wehrmeyer
aa3dded49e Put actual unicode character into test data 2013-12-18 11:33:45 +01:00
Stefan Wehrmeyer
2870fdfb0b Fix a couple of more iterator changes 2013-12-18 11:32:58 +01:00
Stefan Wehrmeyer
426095634c Replace unicode with str, duck type encode 2013-12-18 11:31:41 +01:00
Stefan Wehrmeyer
ba7109a6b9 Add Py 2 and Py 3 classifiers 2013-12-18 04:08:24 +01:00
Stefan Wehrmeyer
74b900f1f6 Move from sqlalchemy-migrate to alembic
This affects how columns are added and dropped from
tables. MetaData and SQLATable objects have to be
recreated to make sync changed columns.
2013-12-18 04:08:24 +01:00
Stefan Wehrmeyer
5d3e8b90bf Turn ResultIter class into Python 3 iterator 2013-12-18 04:08:23 +01:00
Stefan Wehrmeyer
23e484cbed Handle Python 3 keys/values iterators 2013-12-18 04:08:23 +01:00
Stefan Wehrmeyer
88c0c1a15f Remove basestring, unicode from code base 2013-12-18 04:08:21 +01:00
Stefan Wehrmeyer
b3520665d7 Replace old except syntax with new one
Drops Python 2.5 support
2013-12-18 03:22:49 +01:00
Stefan Wehrmeyer
ad72ca5c4c Use new urllib.parse imports with fallbacks 2013-12-18 03:22:22 +01:00
Stefan Wehrmeyer
408145a98d Fix syntax errors cause by old octal literals 2013-12-18 03:22:00 +01:00
3onyc
a75c1968b4 Only apply fix when the current engine has an SQLite dialect 2013-12-10 14:06:06 +01:00
Friedrich Lindenberg
2d526a2b73 Merge pull request #55 from cli248/upstream
Fix #51: change 'Text' to 'String' in create_table function
2013-12-07 02:25:18 -08:00
Chen
dac921a29e modify testcase for create_table() function 2013-12-07 00:22:29 -05:00
Chen
4a86981026 chang "Text" to "String" in create_table() function, fix issue #51 2013-12-06 23:58:54 -05:00
Friedrich Lindenberg
d393523764 use row.copy() not copy.copy(row) 2013-12-05 13:11:04 +01:00
Friedrich Lindenberg
ba07c2c998 Merge pull request #54 from cli248/upstream
add drop_column function
2013-12-04 13:10:11 -08:00
Chen
36b27c354b add drop_column function 2013-12-04 14:44:01 -05:00
Friedrich Lindenberg
a174225de3 Change code to use copy(). 2013-12-04 17:55:42 +01:00
Friedrich Lindenberg
ff247f17cc Create a new dict before updating data. Fixes #53 2013-12-04 11:09:22 +01:00
3onyc
07c290f691 Implement SQLite datetime fix 2013-11-21 08:48:38 +01:00
Friedrich Lindenberg
b7bbde45fa Fix tests; pass url query args to create_engine. Fixes #40 2013-11-15 23:23:03 +02:00
Friedrich Lindenberg
8ec494c515 Up the release to 0.3.14 2013-11-15 22:50:17 +02:00
Friedrich Lindenberg
65198dc74a Use Python-slugify to generate Freezefile slugs.
This lets me remove a lot of unneeded code from the utils, and the
dependency improves the quality a lot.
2013-11-15 22:50:17 +02:00
Friedrich Lindenberg
060691f818 Include Python-slugify to begin using their slugging function 2013-11-15 22:50:16 +02:00
Friedrich Lindenberg
ea582d3fce Merge pull request #39 from diegoguimaraes/master
Fixing bug
2013-11-15 12:43:56 -08:00
Friedrich Lindenberg
2288202a4c Merge pull request #36 from gtsafas/patch-2
Some refactors I noticed when reading through the code
2013-11-15 12:28:24 -08:00
Diego GuimarĂ£es
bc16b9e325 Fixing bug
Fixing bug where the insert method always returns 0,
even after a successfully insetion, rather than the id
of the inserted element.
2013-11-14 22:24:44 -02:00
George "elb0w" Tsafas
7675198640 Some refactors I noticed when reading through the code
Pretty nicely written, I didnt actually test these. But I think they are sane. Nice project, im going to use it later.
2013-11-13 09:57:25 -05:00
Friedrich Lindenberg
4856c16b1f Merge pull request #35 from 3onyc/issue-33
Use string comparison in create_table (Fixes issue #33)
2013-11-13 02:07:25 -08:00
3onyc
95ca93cff0 Use string comparison in create_table (Fixes issue #33) 2013-11-13 10:05:46 +01:00
Friedrich Lindenberg
6b8a40746c Merge pull request #31 from alasdairnicol/quickstart_freeze_examples
Fix freeze examples in the docs
2013-11-12 06:42:50 -08:00
Alasdair Nicol
c7b07d6ca8 Fix freeze examples in the docs 2013-11-12 14:14:53 +00:00
Friedrich Lindenberg
dc144a27b0 have find_one return a dict, not a tuple 2013-11-04 17:29:20 +01:00
Friedrich Lindenberg
70eece9e77 Support transforms, fixes #28 2013-09-19 19:25:28 +02:00
Friedrich Lindenberg
36cbd4e417 Mention driver packages, fixes #25 2013-09-19 19:14:46 +02:00
Friedrich Lindenberg
a3613ef133 fixes #29: logger for command line app 2013-09-19 18:32:55 +02:00
Friedrich Lindenberg
9de60c388d update version 2013-09-18 12:54:27 +02:00