Re: [sqlalchemy] cumulative sum of 1-many table columns.

2012-08-16 Thread jeetu
I am not able see the total_sales column in sqlite manager plugin of firefox and sqlagrid of toscawidgets. But I can access the total_sales when I use toscawidget's dbform. Any known reasons? On Tuesday, 7 August 2012 20:56:07 UTC+5:30, jeetu wrote: Just one minor update for future reference,

Re: [sqlalchemy] cumulative sum of 1-many table columns.

2012-08-16 Thread Michael Bayer
total_sales here is not a DB column here, it's just an attribute in your Python model. the most legit way to see total_sales in your SQLite database would be to query for it.select sum(artist.sales) from artist where album_id=some album. Alternatively, a denomalized approach would be to

[sqlalchemy] How to disable Foreign Keys to clear database

2012-08-16 Thread Greg
Hi, I was naively trying to clear a db earlier in the day and I ran into this problem: 'Cannot delete or update a parent row: a foreign key constraint fails' So as anyone would do I've been searching online and through the documentation on how to turn the foreign keys off, on delete =

[sqlalchemy] connect mssql wrong(sqlalchemy.exc.DBAPIError: (Error) ('08001', '[08001] [Microsoft][ODBC SQL Server Driver][DBNETLIB]SQL Server \xb2\xbb\xb4\xe6\xd4\xda\xbb\xf2\xb7\xc3\xce\xca\xb1\xbb\

2012-08-16 Thread nepaul
my code: import sqlalchemy db = sqlalchemy.create_engine(mssql+pyodbc://root:123456@localhost/DumpResult) conn = db.connect() print db -- You received this message because you are subscribed to the Google Groups sqlalchemy group. To view this discussion on the web visit