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