dbvc-spring-boot-starter

database version controller

License

License

Categories

Categories

Spring Boot Container Microservices
GroupId

GroupId

com.hb0730
ArtifactId

ArtifactId

dbvc-spring-boot-starter
Last Version

Last Version

1.2.2
Release Date

Release Date

Type

Type

jar
Description

Description

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

Project URL

https://github.com/hb0730/dbvc

Download dbvc-spring-boot-starter

How to add to project

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

Dependencies

compile (3)

Group / Artifact Type Version
com.hb0730 : dbvc-spring-boot jar 1.2.2
org.springframework.boot : spring-boot-starter jar 2.0.5.RELEASE
org.springframework.boot : spring-boot-starter-validation jar 2.0.5.RELEASE

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