-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
heuristic rules that ref blingbling #127
Labels
Comments
not thanks me, we should thanks PingCap。ha~~~ |
6f6f804 support |
JOI.007 should be
|
|
|
COL.018 建表语句中使用了不推荐的字段类型
|
martianzhang
changed the title
more and more heuristic rules
heuristic rules that ref blingbling
Dec 16, 2018
如下启发式建议没有很好的理论支持或业内公识,暂不会在SOAR中合并。 --rule-allow-after-clause 是否允许after子句. 默认: true (default true)
--rule-allow-change-column 是否允许Alter Change子句. 默认: true (default true)
--rule-allow-insert-ignore 是否允许 INSERT IGNORE 语句. 默认: true (default true)
--rule-allow-insert-replace 是否允许 INSERT REPLACE 语句. 默认: true (default true)
--rule-allow-insert-select 是否允许 INSERT SELECT 语句. 默认: true (default true)
--rule-allow-rename-index 是否允许重命名索引. 默认: true (default true)
--rule-allow-rename-table 是否允许重命名表, 默认: true (default true)
--rule-have-column-name string 必须要的字段, 默认(多个用逗号隔开)
--rule-need-default-value-name string 必须要有默认值的字段名, 默认(多个用逗号隔开) (default "created_at,updated_at,create_time,update_time,create_at,update_at,created_time,updated_time")
--rule-need-index-column-name string 必须要有索引的字段名, 默认(多个用逗号隔开) (default "created_at,updated_at,create_time,update_time,create_at,update_at,created_time,updated_time")
--rule-not-null-column-name string 必须为not null 的索引名, 默认(多个用逗号隔开) (default "created_at,updated_at,create_time,update_time,create_at,update_at,created_time,updated_time")
--rule-not-null-column-type string 必须为not null的字段类型, 默认(多个用逗号隔开). 可填写的类型有: decimal, tinyint, smallint, int, float, double, timestamp, bigint, mediumint, date, time, datetime, year, newdate, varchar, bit, json, newdecimal, enum, set, tinyblob, mediumblob, longblob, blob, tinytext, mediumtext, longtext, text, geometry (default "varchar") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Feature Description
Reference blingbling, SOAR should add these heuristic rules.
Use Case(s)
Thanks to @daiguadaidai
The text was updated successfully, but these errors were encountered: