When modifying data in the database, it’s crucial to ensure that the changes are both safe and accurate. Bytebase offers a feature called SQL Review, which allows you to evaluate your SQL changes before they are applied to the database. SQL Review can be invoked from the Bytebase GUI, CI or API. This is one of the tutorial series of SQL Review:Documentation Index
Fetch the complete documentation index at: https://docs.bytebase.com/llms.txt
Use this file to discover all available pages before exploring further.
- SQL Review with Bytebase GUI
- SQL Review with CI (integrated with Database GitOps workflow):
- SQL Review with Bytebase API (this one)
- Codify SQL Review Policies with Bytebase API
Prerequisites
Make sure you have completed the previous tutorial SQL Review with Bytebase GUI.If you want to test the SQL Review API locally with cloud CI/CD services, you’ll need to expose your local Bytebase instance. See Network Architecture guide for options like ngrok or VS Code port forwarding.
API Examples
You may call Bytebase API in your internal portal or GitHub Actions to trigger SQL Review. Check out https://github.com/bytebase/example-api/tree/main/issue-creation

