Archery icon indicating copy to clipboard operation
Archery copied to clipboard

数据库管理页面-添加mysql/pgsql/mongo实例选择下拉菜单-并添加pgsql/mongo创建数据库功能

Open taochao2000 opened this issue 3 years ago • 4 comments

commits:数据库管理页面-添加pgsql实例选择下拉菜单-并添加pgsql创建数据库功

  1. sql/templates/database.html 添加db_type类型选择下拉菜单,自动生成对应实例和数据库列表
  2. sql/instance_database.py 添加db_type=pgsql/mongo的数据库查询和创建
  3. sql/engine/pgsql.py 添加execute方法支持pgsql create database ddl
  4. sql/engine/mongo.py 添加execute ddl参数和打印,remark字段为mongo数据库密码

taochao2000 avatar Feb 25 '22 11:02 taochao2000

效果图: 企业微信截图_16461268958393 企业微信截图_1646126996510 image 企业微信截图_16461269398221

taochao2000 avatar Feb 25 '22 11:02 taochao2000

有冲突,解决下,另外mongo 的修改和pr无关,删掉或者另开一个pr吧

LeoQuote avatar Feb 26 '22 15:02 LeoQuote

Codecov Report

Merging #1401 (509d97b) into master (ae58fbd) will decrease coverage by 3.38%. The diff coverage is 4.12%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1401      +/-   ##
==========================================
- Coverage   77.95%   74.56%   -3.39%     
==========================================
  Files          76       82       +6     
  Lines       11963    13275    +1312     
==========================================
+ Hits         9326     9899     +573     
- Misses       2637     3376     +739     
Impacted Files Coverage Δ
sql/instance_database.py 12.68% <0.00%> (-6.42%) :arrow_down:
sql/engines/pgsql.py 82.81% <9.09%> (-9.55%) :arrow_down:
sql/engines/mongo.py 47.77% <40.00%> (-0.51%) :arrow_down:
sql/utils/data_masking.py 9.09% <0.00%> (-83.64%) :arrow_down:
sql/engines/inception.py 16.76% <0.00%> (-69.37%) :arrow_down:
sql/engines/mssql.py 69.89% <0.00%> (-14.82%) :arrow_down:
sql/templatetags/format_tags.py 65.00% <0.00%> (-13.58%) :arrow_down:
sql/engines/mysql.py 80.65% <0.00%> (-11.62%) :arrow_down:
sql/engines/goinception.py 81.13% <0.00%> (-5.72%) :arrow_down:
sql/engines/redis.py 77.14% <0.00%> (-2.66%) :arrow_down:
... and 31 more

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update b8eabf9...509d97b. Read the comment docs.

codecov[bot] avatar Mar 01 '22 09:03 codecov[bot]

有冲突,解决下,另外mongo 的修改和pr无关,删掉或者另开一个pr吧

已经删除之前PR,重新提交commit,并添加了mongo实例过滤和数据库创建 企业微信截图_16461265549412

taochao2000 avatar Mar 01 '22 09:03 taochao2000