KI_SNAPSHOT

Snapshot a temporary KDB table

Synopsis:
CALL KI_SNAPSHOT handle, eAttr TO status
status = 'ki_snapshot( handle, eAttr )
ArgumentEnumerationPurpose
handleHandle
eAttrKDB_SNAPSHOT_ENUMattribute
statusKDB_ERROR_ENUMReturn status
>KI_SNAPSHOT

KI_SNAPSHOT

When called with eAttr set to _KDB_SNAPSHOT_BACKUP it copies the contents of the temporary table open on the handle into a private buffer to generate a snapshot. The application can then continue to use the table until such time as it wants to revert to the snapshot with another call to KI_SNAPSHOT and eAttr set to _KDB_SNAPSHOT_RESTORE. The table should now be exactly as it was at the time of the original snapshot.

Only one snapshot can exist at any time. To free up an existing snapshot call KI_SNAPSHOT with eAttr set to _KDB_SNAPSHOT_CLEAR.

Compatibility

This function is only available for KDB7 temporary tables.

History
Introduced in KCML 6.60
See Also:
KI_BEGIN, KI_COMMIT, KI_LOG_SYNC, KI_ROLLBACK, KI_SET_MODE, KI_TABLE_SYNC
KCML database status codes