Bytebase Docs home page
Search...
⌘K
Ask AI
GitHub
bytebase.com
bytebase.com
Search...
Navigation
Review
Review Policy
Get Started
Features
Administration
Integrations
Tutorials
API Reference
Changelog
Database CI/CD
Overview
Change
Review
SQL Review
Review Policy
Review Rules
UI Integration
CI Integration
Approve
Roll out
Roll back
Version
Monitor
GitOps
Settings
Troubleshoot
SQL Editor
Overview
Query
Admin Mode
Data Masking
Manage SQL Scripts
AI Assistant
Settings
Database Permission
Overview
Grant Access
Request a Role
Role Expiration Reminder
One-Time Export
Dynamic Data Masking
Overview
Semantic Types
Masking Algorithm
Global Masking Rule
Data Classification
Column Masking
Masking Exemption
On this page
Prerequisites
Access SQL Review Policy
Start by Choosing a Template
Add or Remove SQL Review Rules
Change Rule Level
Attach to Resources
Disable or Delete SQL Review Policy
Review
Review Policy
Copy page
Tutorial: Codify SQL Review Policies with Bytebase API
In Bytebase, you can establish a SQL Review Policy for each
environment
or
project
. This policy consists of a set of
SQL lint rules
tailored to each database engine. Once configured, Bytebase will check SQL against those rules.
Prerequisites
Workspace Admin
/
DBA
role to configure the Review Policy.
Access SQL Review Policy
You can access
SQL Review Policy
from following places:
SQL Review
under
Security & Policy
sidebar
Environment
setting
Project
setting
Start by Choosing a Template
You can choose a predefined template or create a new policy from scratch.
Add or Remove SQL Review Rules
You can add or remove SQL Review rules per database engine to this policy.
Change Rule Level
You can choose one of
Error
,
Warning
and
Disabled
.
Both
Warning
and
Error
will block the
automatic rollout
if configured.
Attach to Resources
Project
level policy has higher priority than
Environment
one.
You can attach the
SQL Review Policy
to environments or projects. Only
ONE
policy can be attached per
Environment
or
Project
.
Disable or Delete SQL Review Policy
You can disable the
SQL Review Policy
to prevent it from taking effect.
After disabling it, you can delete it.
Was this page helpful?
Yes
No
SQL Review
Review Rules
Assistant
Responses are generated using AI and may contain mistakes.