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
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
3onyc
a75c1968b4
Only apply fix when the current engine has an SQLite dialect
2013-12-10 14:06:06 +01: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
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
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
ea582d3fce
Merge pull request #39 from diegoguimaraes/master
...
Fixing bug
2013-11-15 12:43:56 -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
3onyc
95ca93cff0
Use string comparison in create_table (Fixes issue #33 )
2013-11-13 10:05:46 +01: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
a3613ef133
fixes #29 : logger for command line app
2013-09-19 18:32:55 +02:00
Yi Xie
257d767b6d
add options to create custom primary id and type with shorthand format
2013-09-15 14:12:30 -04:00
Yi Xie
95cc5dd411
simplify creat_table interface
2013-09-13 09:42:35 -04:00
Yi Xie
bfd75360be
create table with custom primary_id
2013-09-08 11:35:43 -04:00
Jonathan Eunice
93c05eb542
Added convenience check to `freeze()`. If a whole table is passed
...
as a result set, rather than a result set, calls ``result.all()``
to automagically "do the right thing."
2013-08-20 13:55:42 -04:00
Friedrich Lindenberg
e488664efe
Support generation of static JSONP.
2013-08-19 22:45:05 +02:00
Friedrich Lindenberg
ef45f8dd95
Allow query parameters on database.query().
2013-08-18 18:09:07 +02:00
Brian Abelson
1f77509017
update table.update to perform the same as upsert
2013-08-11 10:40:27 -04:00
Brian Abelson
904e464dfa
allow keys arg for upsert to be a string
...
I want to be able to use `upsert` without formatting the keys arg as a list, ie:
```
table.upsert(new_data, "id")
```
2013-08-10 21:34:00 -04:00
Paul Furley
69815e65fc
Moved logging.basicConfig() so using dataset as a library doesn't interfere with the global logger
2013-08-06 13:48:55 +01:00
Friedrich Lindenberg
39edde3a2c
Support postgres schemata, bump version
2013-07-25 10:18:20 +02:00
gka
1dbf8ddc70
application should be able to overwrite environment setting
2013-07-15 10:38:19 +02:00
mattack108
cf8f3dc4d2
Allow to use url defined as env variable.
2013-07-14 21:50:52 +01:00
Friedrich Lindenberg
f520193a9e
Merge pull request #17 from scraperdragon/upsert_all_key
...
Permit upsert with all columns as keys
2013-06-27 09:39:13 -07:00
David McKee
6533fd16e9
upsert with all keys
2013-06-27 12:12:33 +00:00
scraperdragon
79acee2371
Describe what happens when find_one has nothing to return.
2013-06-27 11:47:04 +01:00
Friedrich Lindenberg
e10dc36219
Try to avoid some locking issues.
2013-06-14 10:33:57 +02:00
Friedrich Lindenberg
10dfcad00b
Merge branch 'refs/heads/feature/transactions'
2013-06-13 11:57:23 +02:00
Brett Beaudoin
fffa633e84
Added support for "IN" operator of a WHERE clause.
...
The table update only allowed for "==" operator as in:
UPDATE mytable SET foo = 'bar' WHERE id = 123;
Now allows for "IN" operator as in:
UPDATE mytable SET foo = 'bar' WHERE id IN (123, 876);
This required changes to the "_args_to_clause" and "update" functions.
2013-06-06 17:23:52 -06:00
Gregor Aisch
4f3f574d58
made reflect metadata a flag ( fixes #9 )
2013-05-24 23:50:28 +02:00
Friedrich Lindenberg
1a25fbcd77
Allow user to override freezefile.
2013-05-21 16:17:36 +02:00
Friedrich Lindenberg
db71b6d631
Re-write locking to support transactions.
2013-05-13 21:21:25 +02:00
Friedrich Lindenberg
33908b2699
Use engine for DDL
2013-05-13 20:14:57 +02:00
Friedrich Lindenberg
b5181a4105
Testing with transactions support.
2013-05-10 22:58:23 +02:00
Gregor Aisch
bbfdb2e64b
renamed filter args to _filter to avoid confusion with built in filter()
2013-04-30 16:38:01 +02:00
Gregor Aisch
cfe4a0bef6
ensuring that table.all() works without id column ( fixes #8 )
2013-04-30 00:18:06 +02:00
Friedrich Lindenberg
310b9abd81
Add import of exception; fixes #5
2013-04-26 10:46:43 +02:00