On Thursday, August 7, 2014 6:28:24 PM UTC-7, 王凯凯 wrote: > > Hi, I am using pyramid with sqlalchemy. I wonder wether there are some > tools like 'django-admin.py sqlall' in django that print the sql > statement of 'CREATE TABLE'. >
I’m unfamiliar with Django, so maybe you’re looking for something other than this, but there’s a FAQ about this: http://docs.sqlalchemy.org/en/rel_0_9/faq.html#how-can-i-get-the-create-table-drop-table-output-as-a-string (If you want a powerful tool to help with migrating your database between schema revisions, see Alembic: http://alembic.readthedocs.org/ .) -- 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.