[sqlalchemy] Re: Making a copy of a table

2010-07-29 Thread Meitham
On 28/07/2010 15:14, Massi wrote: > I'm getting in trouble in th attempt to create a simple copy > (structure and data) of a table in my database (sql server). I need > the SQLAlchemy equivalent of the query: Take a look at this http://www.tylerlesmann.com/2009/apr/27/copying-databases-across-plat

[sqlalchemy] Re: Convert type from dbapi description

2010-07-02 Thread Meitham
lse) ipdb> meta.tables['City'].columns['ID'].type INTEGER(display_width=11) ipdb> meta.tables['City'].columns['ID'].type.get_dbapi_type(engine.dialect.dbapi) DBAPISet([0, 1, 3, 4, 5, 8, 9, 13]) ipdb> I don't understand why this is giving me