Commit Graph

222 Commits

Author SHA1 Message Date
Friedrich Lindenberg
5a458da376 allow params in query() 2013-08-18 18:37:31 +02:00
Friedrich Lindenberg
ef45f8dd95 Allow query parameters on database.query(). 2013-08-18 18:09:07 +02:00
Friedrich Lindenberg
51462678c6 new version for pypi 2013-08-12 12:09:55 +02:00
gka
39d870a36a Merge pull request #24 from abelsonlive/master
update table.update now accepting keys as string, too
2013-08-12 01:47:00 -07:00
Brian Abelson
1f77509017 update table.update to perform the same as upsert 2013-08-11 10:40:27 -04:00
gka
b14b73e320 Merge pull request #23 from abelsonlive/master
allow keys arg for upsert to be a string
2013-08-11 01:55:44 -07: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
Friedrich Lindenberg
a228f48e23 Merge pull request #22 from scraperwiki/20-fix-logging
Don't modify the root logger if being used as a library
2013-08-06 06:53:06 -07: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
Friedrich Lindenberg
3860b76dcf Merge pull request #21 from mattack108/master
Allow env variable for database connection
2013-07-15 00:35:04 -07:00
mattack108
9c7cdf6723 No needs for positional args. 2013-07-14 22:07:42 +01:00
mattack108
a9be8300aa Update docs. 2013-07-14 22:05:52 +01:00
mattack108
57a7c58f63 Test case when url comes as env variable. 2013-07-14 21:51:35 +01:00
mattack108
cf8f3dc4d2 Allow to use url defined as env variable. 2013-07-14 21:50:52 +01:00
Gregor Aisch
6df8870234 bumped version number 2013-07-02 09:50:45 +02: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
Friedrich Lindenberg
3f7f07d61a Merge pull request #16 from scraperdragon/patch-2
Describe what happens when find_one has nothing to return.
2013-06-27 09:37:49 -07:00
David McKee
3b238084eb test for upserting with all keys 2013-06-27 12:13:28 +00: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
57c37ac453 Up version. 2013-06-13 12:02:56 +02:00
Friedrich Lindenberg
10dfcad00b Merge branch 'refs/heads/feature/transactions' 2013-06-13 11:57:23 +02:00
Friedrich Lindenberg
36c5401f60 Merge pull request #14 from brettbeaudoin/master
Added support for "IN" operator of a WHERE clause.
2013-06-07 01:55:13 -07:00
Friedrich Lindenberg
80d79681a3 Merge pull request #13 from fmartingr/delete-on-docs
API documentation: added table.delete()
2013-06-07 01:52:56 -07: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
Felipe Martín
449191178d API documentation: added table.delete() 2013-06-06 15:50:27 +02: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
3b1e17a5c2 ignoring .pyo files 2013-04-30 16:38:01 +02:00
Friedrich Lindenberg
df8941672e up sqlalchemy dependency, refs #6 2013-04-30 09:45:30 +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
Friedrich Lindenberg
79f46a0778 Copy over datafreeze documentation, adapt toc etc. 2013-04-22 17:44:55 +02:00
Gregor Aisch
3ad013b1d1 find is now streaming large tables 2013-04-12 16:42:22 +02:00
Gregor Aisch
187ed2680f ResultIter can now deal with generators of resultproxies 2013-04-12 16:41:17 +02:00
Gregor Aisch
47e7eb5193 improved documentation of freeze 2013-04-09 01:10:16 +02:00
Gregor Aisch
c41b92dfad moved dataset.freeze doc to bottom of page 2013-04-09 00:46:52 +02:00
Gregor Aisch
96656d3f80 changed API of dataset.freeze()
dataset.freeze() is now expecting a result iterable instead of database
and query.
2013-04-09 00:26:59 +02:00
Gregor Aisch
176f605119 moved str to Database conversion to freeze_export 2013-04-09 00:20:54 +02:00
Gregor Aisch
bb94b1b343 freeze() now accepts either db-urls or db instances 2013-04-09 00:16:09 +02:00
Gregor Aisch
fb18961e32 class Export expects 'common' dict as first parameter 2013-04-09 00:15:10 +02:00
Gregor Aisch
48fa1cbb27 pep8 autoformat 2013-04-09 00:14:12 +02:00
Gregor Aisch
875e0508f2 insert returns last_id (closes #4) 2013-04-06 03:06:51 +02:00