【文件属性】:
文件名称:pg-migrator:PostgreSQL迁移工具
文件大小:25KB
文件格式:ZIP
更新时间:2021-05-11 18:46:44
JavaScript
pg-migrator
完整且易于使用的命令行迁移工具。
特征
自动从头开始迁移到最新版本
逐步进行迁移
逐步向后迁移
向前或向后迁移到特定版本
子文件夹深度搜索迁移脚本
全部或全部(交易迁移)
可以在可以连接到目标PostgreSQL数据库的任何系统上使用(不需要远程会话)
安装
全局安装此程序,您将可以在系统上的任何位置访问pg-migrator命令。
$ npm install -g pg-migrator
快速开始
使用pg-migrator迁移目标数据库的最快方法是键入“ pg-migrator”和有效的连接字符串,如下所示。
$ pg-migrator postgres://username:password@localhost/testdb
该命令将根据迁移脚本将“ testdb”数据库迁移到最新版本。
您还可以选择带有第二个参数的目标版本,如下所示。
$ p
【文件预览】:
pg-migrator-master
----.travis.yml(37B)
----bin()
--------pg-migrator(3KB)
----package.json(2KB)
----test()
--------pg-migratorSpec.js(130B)
----LICENSE(1KB)
----package-lock.json(14KB)
----examples()
--------ignored-files()
--------performance-tuning()
--------schema-migration()
----.gitignore(102B)
----lib()
--------infrastructure()
--------domain()
--------application()
----Makefile(71B)
----README.md(14KB)