TIMELINE()

From Lianjapedia
Jump to: navigation, search

Purpose

Function to check if timelines are enabled for the current or specified cursor/table

Syntax

TIMELINE([<expC> | <expN>])

See Also

CLEAR TIMELINE, LIST TIMELINE, ROLLBACK TIMELINE, SET(), SET SYSTIMELINE, SET TIMELINE, SET TIMESTAMP, SYSTIMELINE

Description

Database timelines provide row versioning for Lianja database tables. Whenever a change is made to a table that is timeline enabled, 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. The TIMELINE() function returns .T. (true) if timelines have been enabled for the cursor/table in workarea <expN> or with the alias <expC>. If no parameters are specified, TIMELINE() operates on the current cursor.

Example

set timeline on
open database southwind
use orders
? timeline()
.T.