KI_SNAPSHOT
Argument | Enumeration | Purpose |
---|---|---|
handle | Handle | |
eAttr | KDB_SNAPSHOT_ENUM | attribute |
status | KDB_ERROR_ENUM | Return status |
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.