- 
          
- 
                Notifications
    You must be signed in to change notification settings 
- Fork 2
Savepoint API
        Oxford Harrison edited this page Nov 15, 2024 
        ·
        6 revisions
      
    Savepoint is the object representation of a database's savepoint. Each instance implements the following methods:
| API | Description | 
|---|---|
| savepoint.name() | Get the Savepoint's database name. | 
| savepoint.schema() | Get the Savepoint's database schema snapshot. | 
| savepoint.jsonfy() | Return Savepoint instance as plain JSON object. | 
| savepoint.versionTag() | Get the Savepoint's version tag. | 
| savepoint.versionTags() | Get the list of version tags for the database. | 
| savepoint.versionState() | Get the Savepoint's version state. | 
| savepoint.commitDate() | Get the Savepoint's commit date. | 
| savepoint.commitDesc() | Get the Savepoint's commit description. | 
| savepoint.commitClientID() | Get the Savepoint's commit client ID. | 
| savepoint.commitClientPID() | Get the Savepoint's commit client PID. | 
| savepoint.rollbackDate() | Get the Savepoint's rollback date. | 
| savepoint.rollbackDesc() | Get the Savepoint's rollback description. | 
| savepoint.rollbackClientID() | Get the Savepoint's rollback client ID. | 
| savepoint.rollbackClientPID() | Get the Savepoint's rollback client PID. | 
| savepoint.reverseSQL() | Get the rollback or recommit SQL for preview. | 
| savepoint.isNextRestorePoint() | Check if Savepoint can be restored. | 
| savepoint.rollback() | Perform a rollback. | 
| savepoint.recommit() | Perform a recommit. | 
Instances of Savepoint are obtained via the database.savepoint() method and via a CREATE, ALTER, or DROP operation with a RETURNING clause set to SAVEPOINT.