<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>zzzeek - Latest Comments</title><link xmlns="http://www.w3.org/2005/Atom" rel="http://api.friendfeed.com/2008/03#sup" href="http://disqus.com/sup/all.sup#forumcomments-d529a162" type="application/json"/><link>http://zzzeek.disqus.com/</link><description></description><atom:link href="http://zzzeek.disqus.com/comments.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Thu, 09 Feb 2012 12:36:40 -0000</lastBuildDate><item><title>Re: zzzeek : Patterns Implemented by SQLAlchemy</title><link>http://techspot.zzzeek.org/2012/02/07/patterns-implemented-by-sqlalchemy#comment-434159434</link><description>Awesome references! Anyone working with ORMs should read this!</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Henrique Bastos</dc:creator><pubDate>Thu, 09 Feb 2012 12:36:40 -0000</pubDate></item><item><title>Re: zzzeek : Patterns Implemented by SQLAlchemy</title><link>http://techspot.zzzeek.org/2012/02/07/patterns-implemented-by-sqlalchemy#comment-432258618</link><description>I started using SQLAlchemy couple of weeks/months after reading this great book and I must say I learned it very quickly as everything seemed very natural. I suggest mentioning the patterns in the documentation.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Guest</dc:creator><pubDate>Tue, 07 Feb 2012 15:33:53 -0000</pubDate></item><item><title>Re: zzzeek : Django-style Database Routers in SQLAlchemy</title><link>http://techspot.zzzeek.org/2012/01/11/django-style-database-routers-in-sqlalchemy#comment-424659290</link><description>Thanks a lot!!!! I was looking for a solution to enable queries by subdomains and your example, works like a charm!&lt;br&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Samir Mamude</dc:creator><pubDate>Mon, 30 Jan 2012 16:53:08 -0000</pubDate></item><item><title>Re: zzzeek</title><link>http://techspot.zzzeek.org/2010/12/06/my-blogofile-hacks#comment-423933917</link><description>Hi,&lt;br&gt;here my hack just to replace the accents by their corresponding letters&lt;br&gt;&lt;a href="http://pastebin.com/JUL9BQdm" rel="nofollow"&gt;http://pastebin.com/JUL9BQdm&lt;/a&gt;&lt;br&gt;example :&lt;br&gt;"l'agilité" become l-agilite&lt;br&gt;Thanks for the original hack</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">vincent</dc:creator><pubDate>Sun, 29 Jan 2012 17:27:14 -0000</pubDate></item><item><title>Re: zzzeek : Django-style Database Routers in SQLAlchemy</title><link>http://techspot.zzzeek.org/2012/01/11/django-style-database-routers-in-sqlalchemy#comment-423307158</link><description>yeah in reality I like having explicit control the best as well.     I usually like to organize it in as coarse-grained a way as possible - like having @with_db('slave') on the whole web request, for example... or @using_shard(shard_for_user(current_user)).  It means you're just using one database for the whole request and don't need to complicate how the ORM does things.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">zzzeek</dc:creator><pubDate>Sat, 28 Jan 2012 18:28:53 -0000</pubDate></item><item><title>Re: zzzeek : Django-style Database Routers in SQLAlchemy</title><link>http://techspot.zzzeek.org/2012/01/11/django-style-database-routers-in-sqlalchemy#comment-421964368</link><description>i had something like this working under pylons a while back. &lt;br&gt;&lt;br&gt;i only bring it up, because i did something slightly different... i set it up so my syntax is:&lt;br&gt;&lt;br&gt;m1 = dbSession('master').query(Model1).first()&lt;br&gt;&lt;br&gt;i found that to be much better - just always having an explicit db handle &lt;br&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jonathan Vanasco</dc:creator><pubDate>Thu, 26 Jan 2012 22:40:48 -0000</pubDate></item><item><title>Re: zzzeek : Alembic Documentation Ready for Review</title><link>http://techspot.zzzeek.org/2011/11/08/alembic-documentation-ready-for-review#comment-399108581</link><description>Gotcha. It's helpful in a team setting where one could say to another developer "look at the create_users migration. Great for the files to be sortable on the filesystem, but appending a friendly name would be a requirement for us FWIW. Thanks.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">andyparsons</dc:creator><pubDate>Mon, 02 Jan 2012 17:17:51 -0000</pubDate></item><item><title>Re: zzzeek : Alembic Documentation Ready for Review</title><link>http://techspot.zzzeek.org/2011/11/08/alembic-documentation-ready-for-review#comment-399094300</link><description>It is a possible enhancement.   For me, it wouldn't be super helpful, I still find I have to do the "history" call no matter what to see which file is which as it will put them in order.   If there were some way to get the files to list out in order, maybe a letter-based sort key like "aaaa", "aaab", etc., if you wanted to splice in the middle you'd say "aaaba", shrugs..</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">zzzeek</dc:creator><pubDate>Mon, 02 Jan 2012 17:00:31 -0000</pubDate></item><item><title>Re: zzzeek : Alembic Documentation Ready for Review</title><link>http://techspot.zzzeek.org/2011/11/08/alembic-documentation-ready-for-review#comment-399089405</link><description>Nice work. One quick question- why not use human readable filenames, a la ActiveRecord migrations? e.g. &lt;a href="http://45329072ab2d_create_users.py" rel="nofollow"&gt;45329072ab2d_create_users.py&lt;/a&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">andyparsons</dc:creator><pubDate>Mon, 02 Jan 2012 16:50:37 -0000</pubDate></item><item><title>Re: zzzeek : The Enum Recipe</title><link>http://techspot.zzzeek.org/2011/01/14/the-enum-recipe#comment-386896403</link><description>This is really handy! Any chance of it becoming a blessed ORM feature, or at least an official extension, in future releases?</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">danc86</dc:creator><pubDate>Wed, 14 Dec 2011 21:17:08 -0000</pubDate></item><item><title>Re: zzzeek : SQLAlchemy - an Architectural Retrospective</title><link>http://techspot.zzzeek.org/2011/09/25/sqlalchemy-an-architectural-retrospective#comment-371548493</link><description>that is planned; a full book would make use of lots of the online documentation content for the reference material.   Though we had in mind a new series of "examples" that that ties in with a full sample application (which is partially written already).   Also the book needs to spend a lot more time on concepts - relational databases, SQL, approach to application design - since that's what the "book crowd" is really looking for.&lt;br&gt;&lt;br&gt;edit:  "we" here has been a moving target :|</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">zzzeek</dc:creator><pubDate>Thu, 24 Nov 2011 10:45:19 -0000</pubDate></item><item><title>Re: zzzeek : SQLAlchemy - an Architectural Retrospective</title><link>http://techspot.zzzeek.org/2011/09/25/sqlalchemy-an-architectural-retrospective#comment-371543056</link><description>I think the content on &lt;a href="http://www.sqlalchemy.org/docs/" rel="nofollow"&gt;www.sqlalchemy.org/docs/&lt;/a&gt; is quite good. The pdf "feels" like a book. Why not let the docs be "the book"? I'm sure people can help out if there are parts that need restructuring etc.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">codeape</dc:creator><pubDate>Thu, 24 Nov 2011 10:38:02 -0000</pubDate></item><item><title>Re: zzzeek : SQLAlchemy - an Architectural Retrospective</title><link>http://techspot.zzzeek.org/2011/09/25/sqlalchemy-an-architectural-retrospective#comment-371536463</link><description>yes there's been book plans for several years now with a handful of false starts.   it's not a great situation and I'm still trying to figure it out.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">zzzeek</dc:creator><pubDate>Thu, 24 Nov 2011 10:23:16 -0000</pubDate></item><item><title>Re: zzzeek : SQLAlchemy - an Architectural Retrospective</title><link>http://techspot.zzzeek.org/2011/09/25/sqlalchemy-an-architectural-retrospective#comment-371378295</link><description>Any plans of a new/updated SQLAlchemy book?&lt;br&gt;&lt;br&gt;Great library, by the way. Part of my standard setup, wouldn't dream of talking to a database without it.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">codeape</dc:creator><pubDate>Thu, 24 Nov 2011 04:34:05 -0000</pubDate></item><item><title>Re: zzzeek : Alembic Documentation Ready for Review</title><link>http://techspot.zzzeek.org/2011/11/08/alembic-documentation-ready-for-review#comment-369726115</link><description>Yeah and that breaks a lot of things they didn't take in to account such as foreign keys...</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Kamil Kisiel</dc:creator><pubDate>Mon, 21 Nov 2011 19:23:17 -0000</pubDate></item><item><title>Re: zzzeek : Alembic Documentation Ready for Review</title><link>http://techspot.zzzeek.org/2011/11/08/alembic-documentation-ready-for-review#comment-365293605</link><description>migrate's way of doing "migrations" with SQLite is IMHO a huge hack, and can only have a superficial level of compatibility with that of other kinds of databases.    If you use SQLite as your dev DB, your build process should simply create a new database on that backend and re-install the bootstrap/test data it uses.  Migrations are used for production databases which have data that can't be dropped.   It's also a good idea to have the migrations run under continuous integration, but that environment also would have a database that resembles production, AKA your Postgresql DB.&lt;br&gt;&lt;br&gt;In the bigger scheme of things, I think SQLite is too incompatible with PG, not just with migrations but also its absolutely nasty non-support for dates, timestamps and precision numerics for it to be realistic as a "development" version of PG.   PG is free and runs on every platform, the devs should just be using it directly.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">zzzeek</dc:creator><pubDate>Wed, 16 Nov 2011 20:09:34 -0000</pubDate></item><item><title>Re: zzzeek : Alembic Documentation Ready for Review</title><link>http://techspot.zzzeek.org/2011/11/08/alembic-documentation-ready-for-review#comment-364442178</link><description>I think the major difference is that sqlalchemy-migrate support operations on sqlite by doing some workarounds aka "alter table = rename old; create new; move data to new; drop old"&lt;br&gt;&lt;br&gt;&lt;a href="http://readthedocs.org/docs/sqlalchemy-migrate/en/v0.7.2/#dialect-support" rel="nofollow"&gt;http://readthedocs.org/docs/sq...&lt;/a&gt;&lt;br&gt;&lt;br&gt;Atm we use sqlalchemy-migrate because we work on sqlite in dev and on postgres live.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">delijati</dc:creator><pubDate>Wed, 16 Nov 2011 06:02:21 -0000</pubDate></item><item><title>Re: zzzeek : Alembic Documentation Ready for Review</title><link>http://techspot.zzzeek.org/2011/11/08/alembic-documentation-ready-for-review#comment-360876256</link><description>ha, funny.  too bad they didn't get the name on the Python cheese shop !  :)&lt;br&gt;&lt;br&gt;that said, if Lucasfilm would like to "come out of the closet", make it public they use SQLAlchemy internally (something I've heard) and give me a nice case study to put on my site, I'll change the name here.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">zzzeek</dc:creator><pubDate>Fri, 11 Nov 2011 01:33:39 -0000</pubDate></item><item><title>Re: zzzeek : Alembic Documentation Ready for Review</title><link>http://techspot.zzzeek.org/2011/11/08/alembic-documentation-ready-for-review#comment-360836561</link><description>Did you know about this ?  &lt;a href="http://alembic.io/" rel="nofollow"&gt;http://alembic.io/&lt;/a&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Fudge</dc:creator><pubDate>Fri, 11 Nov 2011 00:50:27 -0000</pubDate></item><item><title>Re: zzzeek : Alembic Documentation Ready for Review</title><link>http://techspot.zzzeek.org/2011/11/08/alembic-documentation-ready-for-review#comment-360418736</link><description>I would love to see South adopt some of this behavior. For us, things like the ability to dump raw SQL (via --sql) and pruning old migrations (simply by setting a new base) are awesome.&lt;br&gt;&lt;br&gt;We've managed to hack in a SQL logger to intercept a *majority* of what South does, but rebasing migrations is always painful.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">David Cramer</dc:creator><pubDate>Thu, 10 Nov 2011 17:41:12 -0000</pubDate></item><item><title>Re: zzzeek : Alembic Documentation Ready for Review</title><link>http://techspot.zzzeek.org/2011/11/08/alembic-documentation-ready-for-review#comment-360416362</link><description>At the moment South doesn't try to auto-detect renames at all, it just assumes add/drop and you have to manually edit the migration if you want a rename. I've heard that rename-detection is on the roadmap, but I don't know specifics of implementation plans. I can't really see rename autodetection being reliable enough to do automatically without a user prompt, in any case.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Carl Meyer</dc:creator><pubDate>Thu, 10 Nov 2011 17:36:29 -0000</pubDate></item><item><title>Re: zzzeek : Alembic Documentation Ready for Review</title><link>http://techspot.zzzeek.org/2011/11/08/alembic-documentation-ready-for-review#comment-360070220</link><description>Good stuff!&lt;br&gt;&lt;br&gt;FWIW, I commented on the reddit thread: &lt;a href="http://www.reddit.com/r/Python/comments/m7euv/alembic_a_new_sql_migration_tool_ready_for_review/c2ypgbj" rel="nofollow"&gt;http://www.reddit.com/r/Python...&lt;/a&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">bloodearnest</dc:creator><pubDate>Thu, 10 Nov 2011 10:14:05 -0000</pubDate></item><item><title>Re: zzzeek : Alembic Documentation Ready for Review</title><link>http://techspot.zzzeek.org/2011/11/08/alembic-documentation-ready-for-review#comment-360029382</link><description>My take on auto migrations and name changes is that if Alembic detects an added column matches a deleted column, it should prompt the user to confirm that this is a rename. South does a lot of prompting (since it generates forward and backward migrations, it needs default values for additions and deletions), and I find it user-friendly.&lt;br&gt;&lt;br&gt;More complex operations can be handled by breaking them down: rename the column and autogenerate a migration, change the type and autogenerate immediately again. Support for squashing migrations together would be convenient; it would make rename+typechange simpler to apply, and would be useful when a lot of modifications were made in a private repo / local clone, to remove irrelevant detail before wider distribution.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Tobu</dc:creator><pubDate>Thu, 10 Nov 2011 09:03:10 -0000</pubDate></item><item><title>Re: zzzeek : Hybrids and Value Agnostic Types</title><link>http://techspot.zzzeek.org/2011/10/21/hybrids-and-value-agnostic-types#comment-359572007</link><description>Thanks, that is really sweet.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Scott Torborg</dc:creator><pubDate>Wed, 09 Nov 2011 17:04:28 -0000</pubDate></item><item><title>Re: zzzeek : Alembic Documentation Ready for Review</title><link>http://techspot.zzzeek.org/2011/11/08/alembic-documentation-ready-for-review#comment-359128149</link><description>I don't know if it's the main opinion, but I personally believe that automatic migration should be the norm and the manual way only a fallback option. In the same way, maybe the down_version should be somewhat automatically filled.&lt;br&gt;&lt;br&gt;Anyway, keep up the good work !</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Georges Dubus</dc:creator><pubDate>Wed, 09 Nov 2011 08:41:25 -0000</pubDate></item></channel></rss>
