Skip to main content
Automated SQL review validates your migration files during pull/merge requests, catching issues before they reach production.

What Gets Validated

Automated checks include:
  • SQL syntax validation
  • Policy rule enforcement (200+ configurable rules)
  • Naming convention compliance
  • Risk assessment for dangerous operations
  • Schema compatibility checks

SQL Review Policy

Configure 200+ linting rules for automated validation

Setup

Prerequisites:
  1. Set up SQL Review Policy - Define your SQL standards
  2. Install GitOps Integration - Connect Bytebase to your VCS
Use a compatible bytebase-action image. For Bytebase Cloud, use bytebase/bytebase-action:cloud. For self-hosted Bytebase, replace :cloud with your Bytebase server version, for example :3.14.0.

CI/CD Integration Examples

GitHub Tutorial

GitHub Example

GitHub PR SQL Review

Review Bot Feedback

The SQL review bot posts detailed feedback as PR/MR comments:
  • Passed checks - Migration meets all policy requirements
  • ⚠️ Warnings - Best practice violations (non-blocking by default)
  • Errors - Policy violations (blocking by default)
  • 📊 Risk assessment - Evaluation of potential impact
  • 📝 Detailed explanations - Why rules failed with fix suggestions

Next Steps

Release

Deploy your migrations after review approval

SQL Review Rules

Explore all available SQL review rules