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
Stefan Wehrmeyer
5f2c0193b8
Make print a function in documentation
2014-01-31 20:42:26 +01:00
Stefan Wehrmeyer
8f4cd59c9a
Treat columns as ordered throughout code
...
The set() does not make anything any easier,
lists are closer to underlying representation.
2014-01-31 20:42:04 +01:00
Stefan Wehrmeyer
89ebd62732
Use OrderedDict on insert for value order comparison
2014-01-31 20:15:52 +01:00
Stefan Wehrmeyer
330916f239
Fix test to ignore order of columns
2014-01-31 20:06:06 +01:00
Stefan Wehrmeyer
0e39190062
Reduce complexity of __getitem__ API
...
If you need to specify more, call get_table method
2014-01-31 19:18:58 +01:00
Stefan Wehrmeyer
7a6b16931c
Drop all tables of db after each test
2014-01-31 18:56:58 +01:00
Stefan Wehrmeyer
2865e7c50e
Add travis config to test on sqlite, postgres, mysql
2014-01-31 18:10:49 +01:00
Stefan Wehrmeyer
9035edceeb
Merge pull request #68 from grn/fix-table-cache
...
Update the table cache in update_table (fixes #67 )
Thanks to @grn
2014-01-27 14:25:08 -08:00
Grzegorz Niewisiewicz
a9abc9908d
Add a test case for table cache updates
...
This test case verifies whether get_table returns the most up-to-date
table object containing all columns that has been added to the table
since the last cache update.
2014-01-27 08:58:45 +01:00
Grzegorz Niewisiewicz
a4d676f325
Merge branch 'master' into fix-table-cache
2014-01-27 08:56:28 +01:00
Stefan Wehrmeyer
f254e03ef1
Merge pull request #72 from cli248/new_master
...
Add 'build' to .gitignore
Thanks to @cli248
2014-01-25 15:18:52 -08:00
Chen Liu
ec4c91c20e
add 'build' to .gitignore
2014-01-25 17:57:29 -05:00
Stefan Wehrmeyer
81008c4562
Merge pull request #71 from stefanw/improve-testing
...
Improve test suite and testing
2014-01-25 13:22:28 -08:00
Stefan Wehrmeyer
47456b35a7
Fix type comparison to isinstance check
2014-01-25 22:19:03 +01:00
Stefan Wehrmeyer
697cfcf165
Explicitly install flake8 and run it
2014-01-25 22:13:52 +01:00
Stefan Wehrmeyer
92817d5f4d
Make flake8 part of test suite
2014-01-25 21:45:30 +01:00
Stefan Wehrmeyer
6292bda8aa
Upgrade dependencies
2014-01-25 21:22:19 +01:00
Stefan Wehrmeyer
0726dd9cf3
Remove OrderedDict implementation as RowProxy is returned
...
http://docs.sqlalchemy.org/en/rel_0_9/core/connections.html?highlight=rowproxy#sqlalchemy.engine.RowProxy
2014-01-25 21:22:11 +01:00
Stefan Wehrmeyer
eff6925af9
Fix infinite loop in find method
...
If a _limit is not given, the query limit should
be given by eit
2014-01-25 21:20:18 +01:00
Stefan Wehrmeyer
5a7cafd4e2
Don't convert to datetime, if it is already datetime
2014-01-25 21:06:38 +01:00
Stefan Wehrmeyer
6c8f83b7c2
Merge branch 'master' into improve-testing
...
Conflicts:
test/test_persistence.py
2014-01-25 20:53:03 +01:00
Grzegorz Niewisiewicz
d07cc90345
Update the table cache in update_table (fixes 67)
...
The problem occurs in the following scenario:
* an instance of a Table, obtained through Database.get_table, is used
to insert some data
* a different instance of Table, obtained through Database.get_table
call after the data has been inserted, uses a Table instance that is
not up-to-date
The result is that, e.g. the keys created with the first Table object
aren't accessible via the second object.
This fixes the problem by updating the table cache in
Database.update_table.
2014-01-17 14:54:46 +01:00
Friedrich Lindenberg
e26bf57c39
Merge pull request #64 from Aditya-upadhyay/bugfix/offsets_and_limit
...
fixed bug with offsets and limits.
2014-01-13 01:04:25 -08:00