sql-migrate:用于GoSQL模式迁移工具

时间:2021-01-30 15:28:03
【文件属性】:
文件名称:sql-migrate:用于GoSQL模式迁移工具
文件大小:55KB
文件格式:ZIP
更新时间:2021-01-30 15:28:03
go sql sql-schema-migration bindata SQLGo sql迁移 用于SQL Schema迁移工具。 基于和 。 使用吗? 查看 。 产品特点 可用作CLI工具或库 支持SQLite,PostgreSQL,MySQL,MSSQL和Oracle数据库(通过 ) 可以将迁移嵌入到您的应用程序中 使用SQL定义迁移,以实现充分的灵活性 原子迁移 上/下迁移以允许回滚 在一个项目中支持多种数据库类型 与其他库(例如 安装 要安装库和命令行程序,请使用以下命令: go get -v github.com/rubenv/sql-migrate/... 用法 作为独立工具 $ sql-migrate --help usage: sql-migrate [--version] [--help] [] Available commands are: down Undo a database migration new Create a new migration redo Reapply the last migration status Show
【文件预览】:
sql-migrate-master
----.gitignore(51B)
----go.mod(608B)
----doc.go(7KB)
----migrate.go(19KB)
----sqlparse()
--------sqlparse_test.go(7KB)
--------sqlparse.go(6KB)
--------LICENSE(1KB)
--------README.md(177B)
----sort_test.go(1001B)
----.travis.yml(676B)
----LICENSE(1KB)
----go.sum(40KB)
----toapply_test.go(3KB)
----README.md(13KB)
----test-migrations()
--------2_record.sql(100B)
--------1_initial.sql(218B)
----migrate_test.go(19KB)
----init_test.go(104B)
----sql-migrate()
--------command_new.go(2KB)
--------godror.go(444B)
--------command_down.go(1KB)
--------main_test.go(13B)
--------command_common.go(1KB)
--------main.go(959B)
--------command_status.go(2KB)
--------command_skip.go(2KB)
--------command_up.go(1KB)
--------command_redo.go(2KB)
--------oracle.go(175B)
--------mssql.go(162B)
--------config.go(2KB)
----bindata_test.go(5KB)
----test-integration()
--------sqlite.sh(373B)
--------dbconfig.yml(551B)
--------postgres.sh(277B)
--------mysql-env.sh(406B)
--------mysql.sh(274B)
--------mysql-flag.sh(237B)

网友评论