diff options
author | Nick Kallen <nkallen@nick-kallens-computer-2.local> | 2008-05-21 00:23:32 -0700 |
---|---|---|
committer | Nick Kallen <nkallen@nick-kallens-computer-2.local> | 2008-05-21 00:23:32 -0700 |
commit | 191b2b7b7e6e2cf4fc5a24321bc9b1e593f96551 (patch) | |
tree | 926f27080e6bc10f49d55ad209b4b8b665818d90 /doc | |
parent | 41f80e494af3ce7c8f3d6aa34f8303524a48373b (diff) | |
download | rails-191b2b7b7e6e2cf4fc5a24321bc9b1e593f96551.tar.gz rails-191b2b7b7e6e2cf4fc5a24321bc9b1e593f96551.tar.bz2 rails-191b2b7b7e6e2cf4fc5a24321bc9b1e593f96551.zip |
externalization now includes limits
Diffstat (limited to 'doc')
-rw-r--r-- | doc/TODO | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -1,4 +1,19 @@ todo: +- joining with LIMIT is like aggregations!! + +users.delete().where( + addresses.c.user_id== + select([users.c.id]). + where(users.c.name=='jack') + ) + + SELECT id, name, + (select count(*) FROM addresses WHERE + user_id=users.id) + FROM users + + SELECT users.*, (SELECT count(id) FROM addresses WHERE + addresses.user_id=users.id) FROM users - and/or w/ predicates - blocks for all operations - result sets to attr correlation too |