基于git设计的python数据库迁移工具。
hiss-cli的Python项目详细描述
什么是嘶嘶声?
hiss是控制数据库架构的简单cli工具。如果你在乎的话 一个稳定的企业服务,你需要知道hiss cli。
如果您设计了开发环境数据库的模式,并且 要将其移动到生产服务器。
这将是困难和不稳定的。嘶嘶声有助于 部署,也有助于另一个数据库引擎的etl。
安装
可以安装HIS pypi。
$ pip install hiss-cli
功能(计划)
- 支持公共数据库(mysql、mssql、postgresql、mariadb、 甲骨文)
- 控制更改架构的修订历史记录。
- commit、rollback、push、reset、tag、list、show(简单命令 基于Git的设计。
- etl到另一个数据库并分析(到另一个公共数据库或 分布式引擎:雅典娜,普雷斯托,因帕拉,德鲁伊,Hadoop系统,或者 json、xml、csv)
设计(计划)
$ hiss init $ hiss remote add origin database.endpoint.com:3306 > connecting... done. > database `MySQL`, v5.7.11 > Type username: {username} > Type password: {password} $ hiss show databases > couting databses: 32. > databse_1_schema > databse_2_schema > databse_3_schema > more... $ hiss checkout database_1_schema > switched to database `database_1_schema`. $ hiss show tables > counting tables: 160. > information_schema > table_1_sample > table_2_sample > table_3_sample $ hiss set tables table_1_sample > now your current table is `table_1_sample`. $ hiss add column new_column int(64) pk auto_increment default 0 not null -m 'column comment' > add column `new_column`, done. $ hiss status > counting changes: 1, done. > add column 'new_column' int(64) primary auto_increment default 0 not null > : column comment > end $ hiss commit -m 'add new column for testing'. > 1 changes are committed, 1 add(+), 0 remove(-), 0 modified(=). $ hiss reset HEAD^ --hard > reset... done. > : first commit message. $ hiss tag -a v1.0 -m 'marking for first commition.' > done.
注意
此存储库仍在开发中。
如果您想使用演示版本,请通过gitter发送消息 (检查上面的徽章)。
谢谢你。
待办事项
- []持续集成和持续部署
- []添加unittest
- []添加命令:init、show、checkout
- []与MySQL集成
- []品牌:logo