Commit Graph

559 Commits

Author SHA1 Message Date
Tyler Kennedy
91c985b3e8 Update database.py
Inverted logic means _release_internal will always fail on a rollback. Fixed and simplified.
2014-07-31 11:07:09 -04:00
xrotwang
0b76c3fadb fixed problems reported by flake8 2014-07-25 12:46:55 +02:00
xrotwang
a14f0bbde2 ported freezing as csv to python 3.4 2014-07-25 12:15:08 +02:00
Friedrich Lindenberg
9a91f3d113 Change documentation and update version. 2014-06-12 08:52:56 +03:00
Friedrich Lindenberg
75be7d3b62 Merge pull request #98 from victorkashirin/support_with_statement
Fix #90: added `with` statement support to the Database class.
2014-06-12 08:48:42 +03:00
Victor Kashirin
39759c92ab Make more explicit syntaxis for test_with transaction test 2014-06-11 15:14:42 +04:00
Victor Kashirin
c78d5e00b2 Add documentation on transactions 2014-06-11 15:12:44 +04:00
Victor Kashirin
38b1114bde Add support for with statement 2014-06-09 01:36:42 +04:00
gka
14facc15d0 Merge pull request #93 from ode79/patch-1
Fixed broken link.
2014-05-20 21:24:17 -04:00
ode79
a8f78cddc1 Fixed broken link. 2014-05-21 01:45:44 +01:00
Friedrich Lindenberg
f5535fa085 Handle NULL dates, fixes #91. 2014-05-14 14:39:13 +02:00
Friedrich Lindenberg
fcbaf977c0 Fix flake. 2014-05-12 19:44:15 +02:00
Friedrich Lindenberg
d56b767479 Implement support for handling file objects as
input to the freeze function, fixes #79.
2014-05-12 19:35:44 +02:00
Friedrich Lindenberg
9c32d18607 fix flake8 errors 2014-04-20 14:07:13 +02:00
Friedrich Lindenberg
e08565609e Up the version. 2014-03-29 19:17:26 +01:00
Stefan Wehrmeyer
7e116cd690 Merge pull request #82 from irontable/master
Fix find order_by bug for descending order

Thanks to @irontable
2014-03-10 19:10:21 +01:00
John Lee
f6a14d1723 adding test for descending order_by fix 2014-03-10 10:41:51 -07:00
John Lee
798e92e472 Fix find order_by bug for descending order 2014-03-07 17:07:38 -08:00
Friedrich Lindenberg
818de0d7db Merge pull request #81 from TkTech/patch-1
Update index.rst
2014-02-27 22:23:00 +01:00
Tyler Kennedy
7304f44068 Update index.rst
Remove the link to datafreeze, which no longer appears to be available (although a version seems to be available on pypi)
2014-02-27 15:11:16 -05:00
Friedrich Lindenberg
d5ae74afbf Merge pull request #80 from ode79/make_quickstart_examples_work
Make examples in quickstart all work.
2014-02-27 19:26:00 +01:00
O. Emmerson
4caa2cb0cb Make examples in quickstart all work.
When creating the table in the 'Storing data' section the table created
was called 'person', rather than 'user' making the other examples not
work because 'user' was referred to rather than 'person'.

I added countries to the entered data so that later queries in the
quickstart return some data.

I changed examples of returned data in 'Inspecting databases and tables'
match what is actually returned.

In 'Reading data from tables' I make the examples return real data.
2014-02-27 16:13:06 +00:00
Friedrich Lindenberg
e7d317b38b Flakes are gone 2014-02-18 13:08:06 +01:00
Friedrich Lindenberg
294ab81576 up the release 2014-02-18 13:03:36 +01:00
Friedrich Lindenberg
5e90421e2d Fix Python3 support 2014-02-18 13:03:19 +01:00
Friedrich Lindenberg
6ef4cd7814 Revert to using OrderedDict. 2014-02-18 12:59:12 +01:00
Friedrich Lindenberg
a963e4a5ed bugfix release 2014-02-16 13:57:33 +01:00
Stefan Wehrmeyer
ea31943e18 Fix too early StopIteration on empty result sets
Fixes #77, thanks to @hfaran for report
2014-02-16 13:48:56 +01:00
Friedrich Lindenberg
582af184de Extend docs. 2014-02-12 14:14:26 +01:00
Friedrich Lindenberg
ff98190f3b Document 0.5 changes. 2014-02-12 14:06:49 +01:00
Friedrich Lindenberg
bbaa90851e Even better in the syntaxness. 2014-02-12 13:58:04 +01:00
Friedrich Lindenberg
58645a5d66 Aim to fix Travis CI. 2014-02-12 13:53:30 +01:00
Friedrich Lindenberg
a797e90357 Don't try to execute DDL in a transactional context. 2014-02-12 13:52:59 +01:00
Friedrich Lindenberg
7f881b440b Credit the Wehrmeyer. 2014-02-12 12:28:04 +01:00
Stefan Wehrmeyer
a99ed6958c Merge pull request #75 from pudo/enhancements-74
Add return value for Table.delete, add __repr__ to Table

Thanks to @cli248
2014-02-04 02:44:27 -08:00
Stefan Wehrmeyer
3d5e952395 Switch Python Mysql Adapter 2014-02-04 10:41:47 +01:00
Chen Liu
c9cd4bf522 add test case for repr(table) 2014-02-04 09:24:38 +01:00
Chen Liu
58a58912b7 add test case for Table.delete 2014-02-04 09:23:56 +01:00
Chen Liu
03cb294e34 fix rows to rows.rowcount 2014-02-04 09:23:49 +01:00
Chen Liu
5b162feea7 add __repr__ method to Table 2014-02-04 09:23:42 +01:00
Chen Liu
682b90cb6e let table.delete return true/false 2014-02-04 09:23:34 +01:00
Stefan Wehrmeyer
81a26a86e2 Convert print to function in documentation 2014-01-31 22:21:50 +01:00
Stefan Wehrmeyer
77025cede2 Accept engine_kwargs kwarg in connect call 2014-01-31 22:21:24 +01:00
Stefan Wehrmeyer
cd1d3a1d67 Remove documentation on old __getattr__ API 2014-01-31 22:10:17 +01:00
Stefan Wehrmeyer
3fd1c1185a Pass in create_engine kwargs through database constructor 2014-01-31 22:03:34 +01:00
Stefan Wehrmeyer
6deba5937e Test offset behaviour 2014-01-31 21:52:57 +01:00
Stefan Wehrmeyer
88da290740 Add Travis CI build status to README
[skip ci]
2014-01-31 21:22:32 +01:00
Stefan Wehrmeyer
ed007bf4be Reduce default String length of pk to 255 2014-01-31 21:11:12 +01:00
Stefan Wehrmeyer
a34315818f Fix bad python 2.6 detection 2014-01-31 21:07:39 +01:00
Stefan Wehrmeyer
7337b857de Add ordereddict to Py 2.6 special dependencies 2014-01-31 20:55:03 +01:00