Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: run generator anywhere (#2487)

h3n4lefabbd18b4ac
diff --git a/plugin/advisor/generator/README.md b/plugin/advisor/generator/README.md
index b435e97eed..d86396de1a 100644
--- a/plugin/advisor/generator/README.md
+++ b/plugin/advisor/generator/README.md
@@ -12,18 +12,13 @@ This is a SQL review rule generator. It's used for implementing a specific SQL r
)
```
You need write both code and the comment.
-2. build the generator.
+2. run generator to generate the framework code.
```shell
- go build
- ```
- in `/plugin/advisor/generator`
-3. run generator to generate the framework code.
- ```shell
- ./generator --flag {AdvisorType}
+ go run main.go --rule {AdvisorType}
```
in `/plugin/advisor/generator`
e.g.
```shell
- ./generator --flag MySQLColumnDisallowChangingType
+ go run main.go --rule MySQLColumnDisallowChangingType
```
-4. Implement the rule-specific logic in the generated files.
+3. Implement the rule-specific logic in the generated files.