Skip to content

liquibase/liquibase-opensearch-spring-boot-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

84 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Liquibase Extension for OpenSearch: Spring Boot Starter

This is the Spring Boot starter for [liquibase-opensearch], which allows you to easily use Liquibase with OpenSearch clusters in Spring Boot.

Note that the standard Liquibase Spring Boot integration does not work with OpenSearch. You have to use this integration here instead.

Usage

To use this in your java project, add a dependency to org.liquibase.ext:liquibase-opensearch-spring-boot-starter.

This starter requires that an OpenSearchClient is available as a bean. It is generally recommended that you use spring-data-opensearch-starter to create this bean, however you can also provide your own.

Unlike liquibase-opensearch, this will not attempt to create its own OpenSearchClient and consequently it does not try to read any OpenSearch connection information from the properties.

Once you include this library as a dependency in your project, it will automatically trigger the liquibase migration, unless you set opensearch.liquibase.enabled to false. By default, the integration will look for a changelog file at db/changelog/db.changelog-master.yaml.

Note that the standard Liquibase Spring integration will also be triggered automatically, thus you have to disable it, unless you have other databases besides OpenSearch, for which you intend to use Liquibase as normally. To disable it, specify the following Spring configuration:

spring.liquibase.enabled=false

See the properties record for all supported configuration options.

See the liquibase-opensearch documentation for further details on the supported change types for OpenSearch.

OpenSearch Compatibility

Please refer to liquibase-opensearch to see the current compatibility.

Versioning

This project follows the Spring Boot release cycle and thus does not adhere to Semantic Versioning.

Changelog

For the changelog please see the dedicated CHANGELOG.md.

License

This project is licensed under the Apache License Version 2.0 - see the LICENSE file for details.

About

Liquibase Opensearch Springboot Starter Community Extension

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 11

Languages