Session Management
Schema conversion operations performed in Spanner migration tool are stored in a session.json
file. This file can be used to load/restore schema modification operations performed in a previous migration attempt via Spanner migration tool.
Table of contents
Save Session
Spanner Migration Tool provides support for collaborative schema modifications so that users can check-point their schema edits and resume later from the point they left off. It also allows multiple users to work simultaneously on the schema assessment for the same database. For this, users can save a session after any schema modifications by completing a small form wherein they specify the session name, editor name, database name and some notes related to the current session. Once a user clicks on save, an entry is created in the metadata database with corresponding session details and they can resume the session anytime by going to the Session History section in the home page.
Session History
All the saved sessions show up here with the details about database name, editor name, spanner dialect, etc. Users can resume or download a session from this section. In case a user resumes a session it would be equivalent to the load session file connection mechanism, the only difference is that metadata is fetched from the metadata database in the configured spanner instance. In case a user wishes to download a session file, they can do so by clicking on the Download button for the required session.