goInception 介绍
goInception是一个集审核、执行、备份及生成回滚语句于一身的MysqL运维工具,
通过对执行sql的语法解析,返回基于自定义规则的审核结果,并提供执行和备份及生成回滚语句的功能。
goInception延用inception的使用方式,在审核的sql开始前添加注释来指定远端服务器,并在sql的前后添加特殊标识以区分待审核语句,示例如下:
/*--user=root;--password=root;--host=127.0.0.1;--check=1;--port=3306;*/ inception_magic_start; use test; create table t1(id int primary key); inception_magic_commit;
goInception基于TiDB的语法解析器,和业内有名的inpcetion审核工具重构。
源码编译
go version 1.12 (go mod)
git clone https://gitee.com/hanchuanchuan/goInception.git cd goInception make parser go build -o goInception tidb-server/main.go ./goInception -config=config/config.toml
goInception 官网
https://gitee.com/hanchuanchuan/goInception
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。