Im trying to adapt an executesql query to a dal object to make use of features like export to csv.
So ive tried something like: #create a dummy table with the same structure as the results db.define_table("results", Field("field1", "string") , Field("field2", "string") , migrate = False ) #a result from a db.executesql data = [{"field1": "asd1", "field2": "qwe1"}, {"field1": "asd2", "field2": "qwe2"}] #insert data into the table db.results.insert(**data[0]) #get the rows object rows = db(db.results).select() At some point i get "table results doesnt exists" which is true but, Is there any way to get a Rows objects out of a rawsql? Is it required that the table exists? Thanks -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.