45
SQL 审核查询平台
source link: https://www.tuicool.com/articles/zIVZFrE
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
介绍
Archery是 archer 的分支项目,定位于SQL审核查询平台,附加部分DB运维功能,所有功能都兼容手机端操作, 功能列表
开发计划
https://github.com/hhyo/archery/projects
快速开始
系统体验
账号 密码 archer archerDocker
准备运行配置
具体可参考: https://github.com/hhyo/Archery/tree/master/src/docker-compose
启动
进入docker-compose文件夹
#启动 docker-compose -f docker-compose.yml up -d #表结构初始化 docker exec -ti archery /bin/bash cd /opt/archery source /opt/venv4archery/bin/activate python3 manage.py makemigrations sql python3 manage.py migrate #数据初始化 python3 manage.py loaddata initial_data.json #创建管理用户 python3 manage.py createsuperuser #重启服务 docker restart archery #日志查看和问题排查 docker logs archery -f --tail=10 /downloads/log/archery.log
访问
手动安装
运行测试
python manage.py test -v 3
依赖清单
框架
前端组件
- 菜单栏 metisMenu
- 主题 sb-admin-2
- 编辑器 ace
- SQL美化 sql-formatter
- 表格 bootstrap-table
- 表格编辑 bootstrap-editable
- 下拉菜单 bootstrap-select
- 文件上传 bootstrap-fileinput
- 时间选择 bootstrap-datetimepicker
- 日期选择 daterangepicker
- 开关 bootstrap-switch
- Markdown展示 marked
服务端
- 队列任务 django-q
- MySQL Connector mysqlclient-python
- MsSQL Connector pyodbc
- Redis Connector redis-py
- PostgreSQL Connector psycopg2
- Oracle Connector cx_Oracle
- SQL解析/切分/类型判断 sqlparse
- MySQL Binlog解析/回滚 python-mysql-replication
- LDAP django-auth-ldap
- 序列化 simplejson
- 时间处理 python-dateutil
功能依赖
- 可视化 pyecharts
- MySQL审核/执行/备份 goInception | inception
- 数据库审核 Themis
- MySQL索引优化 SQLAdvisor
- SQL优化/压缩 SOAR
- Binlog2SQL binlog2sql
- 表结构同步 SchemaSync
- 慢日志解析展示 pt-query-digest | aquila_v2
- 大表DDL gh-ost | pt-online-schema-change
- MyBatis XML解析 mybatis-mapper2sql
- RDS管理 aliyun-openapi-python-sdk
贡献者
贡献代码
可查阅主页的开发计划以及依赖清单,在对应issues中回复,或者直接提交PR
贡献包括但不限于以下方式:
- Wiki文档(开放编辑)
- Bug修复
- 新功能提交
- 代码优化
- 测试用例完善
问题反馈
Issues 是本项目唯一的沟通渠道,如果在使用过程中遇到问题,请先查阅文档,如果仍无法解决,请查看相关日志,保存截图信息,给我们提交 Issues ,请按照模板提供相关信息,否则会被直接关闭,感谢理解
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK