On 9/25/15 5:26 AM, Chris Withers wrote:
Also forgot to ask... What's support like in Alembic for creating views 
(especially if the views are described by a declarative class as I'm looking 
for below...)

the trick with views is migrating them when the tables change without lots of repetition. I've come up with a recipe for this at http://alembic.readthedocs.org/en/latest/cookbook.html#replaceable-objects.






On 25 Sep 2015, at 08:13, Chris Withers <ch...@simplistix.co.uk> wrote:

Hi All,

Is this still the best way to hand views, or are there later and greater things 
in 1.0+?

https://bitbucket.org/zzzeek/sqlalchemy/wiki/UsageRecipes/Views

How would I make a view behave like a normal declarative class (column 
attributes, etc), but while still having it create itself as part of create_all?

cheers,

Chris

--
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sqlalchemy+unsubscr...@googlegroups.com.
To post to this group, send email to sqlalchemy@googlegroups.com.
Visit this group at http://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.

______________________________________________________________________
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com
______________________________________________________________________

--
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sqlalchemy+unsubscr...@googlegroups.com.
To post to this group, send email to sqlalchemy@googlegroups.com.
Visit this group at http://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.

Reply via email to