Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Tidb | 33,721 | 68 | 101 | 15 hours ago | 1,289 | April 07, 2022 | 3,877 | apache-2.0 | Go | |
TiDB is an open-source, cloud-native, distributed, MySQL-Compatible database for elastic scale and real-time analytics. Try AI-powered Chat2Query free at : https://tidbcloud.com/free-trial | ||||||||||
Xorm | 6,578 | 590 | 307 | 3 years ago | 51 | October 02, 2019 | 308 | bsd-3-clause | Go | |
Simple and Powerful ORM for Go, support mysql,postgres,tidb,sqlite3,mssql,oracle, Moved to https://gitea.com/xorm/xorm | ||||||||||
Bytebase | 5,171 | 19 hours ago | 5 | June 09, 2022 | 20 | other | Go | |||
Database CI/CD for DevOps teams. https://www.bytebase.com | ||||||||||
Screw | 3,050 | 1 | a month ago | 6 | August 18, 2020 | 58 | lgpl-3.0 | Java | ||
简洁好用的数据库表结构文档生成器 | ||||||||||
Gaea | 2,394 | 2 months ago | 16 | April 06, 2022 | 59 | apache-2.0 | Go | |||
Gaea is a mysql proxy, it's developed by xiaomi b2c-dev team. | ||||||||||
Mydumper | 1,932 | a day ago | 28 | gpl-3.0 | C | |||||
Official MyDumper project | ||||||||||
Xorm | 1,451 | 5 | 39 | 2 years ago | 1 | October 31, 2018 | 28 | bsd-3-clause | Go | |
xorm是一个简单而强大的Go语言ORM库,通过它可以使数据库操作非常简便。本库是基于原版xorm的定制增强版本,为xorm提供类似ibatis的配置文件及动态SQL支持,支持AcitveRecord操作 | ||||||||||
Goinception | 1,397 | 11 days ago | 11 | June 12, 2022 | 23 | gpl-3.0 | Go | |||
一个集审核、执行、备份及生成回滚语句于一身的MySQL运维工具 | ||||||||||
Waline | 1,381 | 1 | a day ago | 148 | June 18, 2022 | 35 | gpl-2.0 | JavaScript | ||
💬 A Simple, Safe Comment System | ||||||||||
Sqlancer | 1,192 | a day ago | 4 | January 12, 2022 | 55 | mit | Java | |||
Automated testing to find logic bugs in database systems |
gAuditgolangSQLMySQL/TiDBSQL
8081
API | |||
---|---|---|---|
http://127.0.0.1:8081/api/v1/audit | POST | DDL/DMLSQL | |
http://127.0.0.1:8081/api/v1/extract-tables | POST | DDL/DMLSQL |
curl --request POST '127.0.0.1:8081/api/v1/audit' \
--header 'Content-Type: application/json' \
--data '{
"db_user": "gaudit_rw",
"db_password": "1234.com",
"db_host": "127.0.0.1",
"db_port": 3306,
"db": "dbms_monitor",
"timeout": 3000,
"custom_audit_parameters": {"MAX_VARCHAR_LENGTH": 2000},
"sqltext": "alter table slamonitor modify `address` varchar(16554) NOT NULL DEFAULT '\'''\'' COMMENT '\'''\''"
}
' | jq
template/config.json
> `config/config.go`;
{
"request_id": "0a2392e4-ee3f-4f9c-9da1-3906ae4521c9",
"code": "0000",
"data": [
{
"summary": [
"`host`varchar2000,varchar16554[`slamonitor`]"
],
"level": "WARN",
"affected_rows": 0,
"type": "DDL",
"finger_id": "4B3E7A0DCAE81036",
"query": "alter table slamonitor modify `host` varchar(16554) NOT NULL DEFAULT '' COMMENT ''"
}
],
"message": "success"
}
DML/DDLunion
curl --location --request POST '127.0.0.1:8081/api/v1/extract-tables' \
--header 'Content-Type: application/json' \
--data '{
"sqltext": "alter table t1 add name varchar(100);select * from (select id,name from tt1 join tt2 on tt1.id=tt2.id where tt1.id > 100) as xx;UPDATE product p, product_price pp SET pp.price = p.price * 0.8 WHERE p.productid= pp.productId;"
}' | jq .
{
"request_id": "cb9e5249-c77c-4320-bbfb-9fe0a9391da7",
"code": "0000",
"data": [
{
"tables": [
"t1"
],
"type": "ALTER TABLE",
"query": "alter table t1 add name varchar(100);"
},
{
"tables": [
"tt1",
"tt2"
],
"type": "SELECT",
"query": "select * from (select id,name from tt1 join tt2 on tt1.id=tt2.id where tt1.id > 100) as xx;"
},
{
"tables": [
"product",
"product_price"
],
"type": "UPDATE",
"query": "UPDATE product p, product_price pp SET pp.price = p.price * 0.8 WHERE p.productid= pp.productId;"
}
],
"message": "success"
}
template/python_api.py