User Tools

Site Tools


info:sqlalchemy

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
info:sqlalchemy [2013-08-19 23:11]
sam
info:sqlalchemy [2015-01-14 16:48] (current)
sam [Code Generation from Existing Schema]
Line 41: Line 41:
  
 ===== Code Generation from Existing Schema ===== ===== Code Generation from Existing Schema =====
-[[https://​pypi.python.org/​pypi/​sqlautocode|sqlautocode]] has been around for a while. ​[[https://​pypi.python.org/​pypi/​sqlacodegen/​|sqlacodegen]] was written to replace it. They both use reflection to inspect the database tables, then generate model code to be written to a file.+[[https://​pypi.python.org/​pypi/​sqlacodegen/​|sqlacodegen]] (written to replace an older tool, [[https://​pypi.python.org/​pypi/​sqlautocode|sqlautocode]]) uses reflection to inspect the database tables ​and generate model code to be written to a file.
  
 While dynamic reflection is okay for some uses, sometimes it's better to have the models declared statically. Here are some reasons (enumerated by the author of sqlacodegen) why you might want to do this instead of reflection: While dynamic reflection is okay for some uses, sometimes it's better to have the models declared statically. Here are some reasons (enumerated by the author of sqlacodegen) why you might want to do this instead of reflection:
info/sqlalchemy.txt · Last modified: 2015-01-14 16:48 by sam