An open API service indexing awesome lists of open source software.

https://github.com/ryarnyah/dblock-maven-plugin

SQL Database Backwards Compatibility Maven plugin
https://github.com/ryarnyah/dblock-maven-plugin

backward-compatibility databases dblock maven-plugin mssql mysql postgres postgresql

Last synced: 3 months ago
JSON representation

SQL Database Backwards Compatibility Maven plugin

Awesome Lists containing this project

README

          

[![Build Status](https://travis-ci.org/ryarnyah/dblock-maven-plugin.svg?branch=master)](https://travis-ci.org/ryarnyah/dblock-maven-plugin)

DBLock Version: [0.4.5](https://github.com/ryarnyah/dblock/releases/tag/0.4.5)

# DBLock Backwards Compatibility Check Maven Plugin

The dblock-maven-plugin plugin is a Maven plugin to run a backwards compatibility
check SQL databases. The plugin can be integrated after database schema update.
After first execution, then plugin generate a `db.lock` file and check againts it
for the nexts.

It is also possible to force any breaking changes and reset the current state
by deleting or altering the db.lock file. It will then reinitialize the next time the
plugin is run.

#### Maintaining Backwards Compatibility
In order to maintain backwards compatibility for your databases, a few
rules must be followed when making updates. Please refer here to avoid breaking changes:
https://github.com/ryarnyah/dblock/blob/master/README.md

## Usage

```xml



com.github.ryarnyah
dblock-maven-plugin
1.0.0

POSTGRES
public
host=localhost port=5432 user=postgres dbname=test sslmode=disable password=postgres
.dblock.lock




backwards-compatibility-check




```

## Configuration

* `` (default to `POSTGRES`) - must be a value of `POSTGRES`, `MYSQL`, `MSSQL`.
* `` (default to `.*`) - regex to match schema(s) to check.
* `` (empty) - Database connetion info (See https://github.com/ryarnyah/dblock/blob/master/README.md for format)
* `` (default to `db.lock`) - File path to lock file.