Difference between revisions of "Database Timelines"

From Recital Documentation Wiki
Jump to: navigation, search
(Clearing a timeline)
(What are Database Timelines?)
Line 2: Line 2:
 
===What are Database Timelines?===
 
===What are Database Timelines?===
  
Database timelines introduce row versioning to the Recital database engine. Whenever a change is made to a table that is timeline enabled then delta changes are automatically recorded for each transaction.
+
Database timelines provide row versioning for Recital database applications. Whenever a change is made to a table that is timeline enabled then delta changes are automatically recorded for each transaction. Changes made to any tables that are timeline enabled can be '''undone''' much like you would undo changes to program code that you edit in a text editor.
  
 
===Using Database Timelines===
 
===Using Database Timelines===

Revision as of 06:27, 2 November 2009

Database Timelines

What are Database Timelines?

Database timelines provide row versioning for Recital database applications. Whenever a change is made to a table that is timeline enabled then delta changes are automatically recorded for each transaction. Changes made to any tables that are timeline enabled can be undone much like you would undo changes to program code that you edit in a text editor.

Using Database Timelines

To enable database timelines all you need to do is issue the SET TIMELINE ON command in your Recital configuration file.

Viewing a timeline

There are 2 ways to view a timeline.

  • The LIST TIMELINE command
  • The SELECT * FROM SYSTIMELINE command
LIST TIMELINE [RANGE begin [,end]] [FOR condition]

Undoing database changes

You can undo database changes with the ROLLBACK TIMELINE command.

ROLLBACK TIMELINE [RANGE begin [, end]] [FOR condition]

Clearing a timeline

The CLEAR TIMELINE command will reset a timeline.

CLEAR TIMELINE