kapilratnani / django_hana

[Discontinued] Django db backend for SAP HANA
BSD 3-Clause "New" or "Revised" License
20 stars 13 forks source link

time travel/history #15

Closed alexgv closed 6 years ago

alexgv commented 11 years ago

Is there an ability to create a table with history/timetravel like in this example.

http://scn.sap.com/community/developer-center/hana/blog/2013/02/12/when-i-travelled-through-time-using-sap-hana

kapilratnani commented 11 years ago

I can make a decorator for creating a history table. But, what about time/commit id based queries on the history table? I think the queries should be done using .raw() function. Also, you can use "alter table create history" to convert your table to a history table and then use raw query to populate the model.