dbvc-spring-boot-parent

database version controller

License

License

Categories

Categories

Spring Boot Container Microservices
GroupId

GroupId

com.hb0730
ArtifactId

ArtifactId

dbvc-spring-boot-parent
Last Version

Last Version

1.2.2
Release Date

Release Date

Type

Type

pom
Description

Description

dbvc-spring-boot-parent
database version controller
Project URL

Project URL

https://github.com/hb0730/dbvc

Download dbvc-spring-boot-parent

How to add to project

<!-- https://jarcasting.com/artifacts/com.hb0730/dbvc-spring-boot-parent/ -->
<dependency>
    <groupId>com.hb0730</groupId>
    <artifactId>dbvc-spring-boot-parent</artifactId>
    <version>1.2.2</version>
    <type>pom</type>
</dependency>
// https://jarcasting.com/artifacts/com.hb0730/dbvc-spring-boot-parent/
implementation 'com.hb0730:dbvc-spring-boot-parent:1.2.2'
// https://jarcasting.com/artifacts/com.hb0730/dbvc-spring-boot-parent/
implementation ("com.hb0730:dbvc-spring-boot-parent:1.2.2")
'com.hb0730:dbvc-spring-boot-parent:pom:1.2.2'
<dependency org="com.hb0730" name="dbvc-spring-boot-parent" rev="1.2.2">
  <artifact name="dbvc-spring-boot-parent" type="pom" />
</dependency>
@Grapes(
@Grab(group='com.hb0730', module='dbvc-spring-boot-parent', version='1.2.2')
)
libraryDependencies += "com.hb0730" % "dbvc-spring-boot-parent" % "1.2.2"
[com.hb0730/dbvc-spring-boot-parent "1.2.2"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

dbvc

database version controller(数据库版本控制)

简介

dbvc(数据库版本控制),见名思意,用于项目升级,只需编写.sql文件后,自动进行sql的更替,省去重复步骤

如何使用

dbvc

dbvc项目时当前project core核心,其主要时通过有参构建DbvcPropertiesConnection实现脚本的运行,借助ibatis#ScriptRunner

dbvc-spring-boot-*

dbvc-spring-boot-* 则是实现spring-boot方式,依赖于spring-boot-startermybatis-spring-boot-starter 自动获取Connection,将其注入RunSqlFile

Properties

DbvcProperties如果不了解ibatis#ScriptRunner请不要轻易更改,DbvcProperties主要提供了获取脚本的url配置与生产记录的tableNameScriptRunner#delimiter分隔符 DbvcProperties还提供了是否启动enabled字段,默认状态时true

samples

https://github.com/hb0730/dbvc/tree/master/dbvc-spring-boot-samples

Maven coordinates

<dependency>
    <groupId>com.hb0730</groupId>
    <artifactId>dbvc-parent</artifactId>
    <version>${dbvc-version}</version>
</dependency>

spring-boot project

<dependency>
    <groupId>com.hb0730</groupId>
    <artifactId>dbvc-spring-boot-starter</artifactId>
    <version>${dbvc-version}</version>
</dependency>

MAVEN

  • Install mvn clean install -Dpgp-skip -DskipTests
  • Deploy mvn clean deploy -P release -Dgpg.passphrase="passphrasem密码"

Versions

Version
1.2.2
1.2.1
1.2.0
1.1.0