package
0.0.0-20241119151202-d9b00db7908b
Repository: https://github.com/yywwann/chy-go-kit.git
Documentation: pkg.go.dev

# Functions

CheckInsertContainField 检查 sql 是否为 insert 语句, 并判断是否 insert 了指定字段.
CheckSqlAlterAndGetTableCode 检查语句是否是 alter 语句, 并返回修改的表名.
CheckUpdateContainField.
No description provided by the author
EscapeSql 转义 sql 语句 \ -> \\ ' -> \'.
GenUpdate2Select update <table> set <> where ....
GetQueryFields 获得查询语句要查的字段.
GetSelectTableInfosFromSelectStatement 获得查询语句涉及到的库表.
GetSyntaxType 获取sql类型,1为dml 2为ddl 3为select 4为DbDDL 0为未知.
GetTablesFromSelectStatement 解析 SELECT 查询语句,获取相关的表名.
No description provided by the author
SplitSqlFromFile 支持读sql文件,然后将sql文件拆成 10mb 的sql小文件.
SplitSQLUnsafe 人工模拟分割, 不安全 分割 sql 语句, sql语句可能不完整.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Constants

create、drop databse.
No description provided by the author
10MB.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author