https://github.com/polarfish/update-sql
Liquibase updateSQL command as a service
https://github.com/polarfish/update-sql
java liquibase sql
Last synced: 6 months ago
JSON representation
Liquibase updateSQL command as a service
- Host: GitHub
- URL: https://github.com/polarfish/update-sql
- Owner: polarfish
- License: apache-2.0
- Created: 2020-04-27T19:07:13.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-09-06T15:22:45.000Z (about 3 years ago)
- Last Synced: 2024-04-14T19:09:47.781Z (over 1 year ago)
- Topics: java, liquibase, sql
- Language: Java
- Homepage: https://updatesql.polarfish.nl/
- Size: 68.4 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# update-sql
[](https://github.com/polarfish/update-sql/actions?query=workflow%3ABuild)
Liquibase updateSQL command as a service.
## Description
This service is useful for projects that treat Liquibase changelog
as single source of truth but deliver plain SQL files as well.
So, when developers finish updating the changelog, they can easily generate
the corresponding SQL files.
The result of running this service should be equal to the CLI command below:
```shell script
/path/to/liquibase-bin/liquibase --url=offline: --changeLogFile=/path/to/changelog.yml updateSQL
```## Limitations
The service:
- currently, supports YAML and XML changelogs (not JSON)
- generates SQL for MySql, MariaDB, MSSQL and Oracle databases
- replaces external SQL files inclusion with `-- Content placeholder ()`
- does not support external changelogs inclusion (will result in Bad Request)## Running
### Docker
#### AMD64
```shell script
docker run -d -p 8080:8080 polarfish/update-sql:1.1.0-amd64
```#### ARM64
```shell script
docker run -d -p 8080:8080 polarfish/update-sql:1.1.0-arm64
```### JAR
```shell script
mvn clean package && java -jar target/update-sql*.jar
```### spring-boot-maven-plugin
```shell script
mvn spring-boot:run
```## Screenshots
