go 数据库迁移工具sql-migrate

go 数据库迁移工具sql-migrate,第1张

概述migrate软件https://github.comubenv/sql-migrate下载安装goget-vgithub.comubenv/sql-migrate/...教程:https://github.comubenv/sql-migrate使用sql-migrate命令\$sql-migrate--helpusage:sql-migrate[--version][--help]<command>[<args>] migrate 软件

https://github.com/rubenv/sql-migrate

下载安装
go get -v github.com/rubenv/sql-migrate/...

教程:https://github.com/rubenv/sql-migrate

使用

sql-migrate 命令

$ sql-migrate --helpusage: sql-migrate [--version] [--help] <command> [<args>]Available commands are:    down      Undo a database migration    new       Create a new migration    redo      Reapply the last migration    status    Show migration status    up        Migrates the database to the most recent version available

sql-migrate up --help

$ sql-migrate up --helpUsage: sql-migrate up [options] ...  Migrates the database to the most recent version available.Options:  -config=dbconfig.yml   Configuration file to
总结

以上是内存溢出为你收集整理的go 数据库迁移工具sql-migrate全部内容,希望文章能够帮你解决go 数据库迁移工具sql-migrate所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/langs/1238618.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-06-06
下一篇 2022-06-06

发表评论

登录后才能评论

评论列表(0条)

保存