Jeff Peterson wrote: >> its true that there's no built in functionality to reflect views. In >> the case of your views, just create Table instances manually, specifying >> the >> view names, column names, and column types explicitly. Set the >> "primary_key=True" flag on those columns which you'd like to consider as >> part of the primary key within your application. No database change is >> necessary. > > > So, does doing this actually create a new table in the DB?
no. SQLAlchemy never creates tables unless you tell it to. By "create", i meant, "sometable = Table(...)", i.e., you are creating a Python object in your application which represents the structure of a table or view that is present in the database. *Not* calling table.create().
-- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to sqlalch...@googlegroups.com. To unsubscribe from this group, send email to sqlalchemy+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en.