-
-
Notifications
You must be signed in to change notification settings - Fork 2
savepoint.jsonfy()
Oxford Harrison edited this page Nov 15, 2024
·
2 revisions
DOCS • API • Savepoint API
Return Savepoint instance as plain JSON object.
savepoint.jsonfy(): object;
const savepoint = await client.database('database_1').savepoint();
console.log(savepoint.jsonfy());
Console
{ // Internal parameters... master_savepoint: null, id: '952cc6ae-5b5b-4534-8b03-dc38ee8658ac', database_tag: 'db.1730978107426', // Schema snapshot... name: 'public', '$name': null, tables: [ { name: 'users', columns: [Array], constraints: [], indexes: [], status: 'new' } ], status: null, // Version details... version_tag: 1, version_tags: [ 1 ], version_state: 'commit', commit_date: '2024-07-17T22:40:56.786Z', commit_desc: 'Create users table', commit_ref: null, commit_pid: '72776', rollback_date: null, rollback_desc: null, rollback_ref: null, rollback_pid: null, // Cascades... cascades: [] }