<dependency>
    <groupId>com.wix</groupId>
    <artifactId>wix-embedded-mysql</artifactId>
    <version>2.1.4</version>
    <scope>test</scope>
</dependency>
利用wix-embedded-mysql把MySQL嵌入到进程中,作为内存型的MySQL来做单元测试。
脚本:resources/migrations/mysql/<database>/<timestamp>_<action>.sql
但多个项目需要共享数据库脚本,可能可以用 git submodule 共享。
评论
发表评论