简单的sqlite数据库迁移

migrantp的Python项目详细描述


#偏头痛 [![许可证](http://img.shields.io/:license-apache-blue.svg)](http://www.apache.org/licenses/LICENSE-2.0.html

用于python的简单sqlite数据库迁移库。

##用法

库可以用作命令行实用程序:

`bash migrantpy migrate database.sqlite migrations_folder/ `

或者作为python库:

`python import migrantpy migrantpy.migrate('database.sqlite','migrations_folder/') `

##黑客攻击 您可以通过以下方式创建完整的测试数据库: `bash ./migrant.py migrate test.sqlite test_migrations `

运行单元测试: `bash python3 -m unittest discover --locals `

或在本地安装: `bash python setup.py install --user migrate -h `

##下载 从python包索引安装库: `bash pip install migrantpy `

##许可证

Copyright 2016 Sascha Peilicke

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

除非适用法律要求或书面同意,否则软件 根据许可证分发是按“原样”分发的, 无任何明示或默示的保证或条件。 有关管理权限的特定语言和 许可下的限制。

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java构造函数SimpleCommandBus()不可见   Java字符串和返回   java不能在类中使用上下文?   使用Java为SOAP定制DataHandler   java“访问被拒绝”在编译servlet时   java嵌入Jetty,在给定时间后终止请求   java如何使用预先指定的URL限制AWS S3 bucket中对象的上传大小?   java理解Azure文件存储:未知hostException   java将对象作为参数传递是否会产生与将其存储在字段中相同级别的耦合?   https告诉java客户端代码接受自签名证书   Java中的简单*权威DNS服务器*   Java解压缩字节数组错误数据检查   当我用SpringDoc和接口描述API规范时,java Spring控制器验证似乎不起作用   在Java中使用PHash(OpenCV)   Kotlin中的java简单继承示例   java Infinispan:ISPN004016:服务器不再位于群集中(127.0.0.1:11222),正在从池中删除   2行滑动菜单安卓本机JAVA   使用日期选择器时Android Studio中的java 4错误   java在<之间删除内容!和/>