liquibase-hana | Liquibase Hana extension
kandi X-RAY | liquibase-hana Summary
kandi X-RAY | liquibase-hana Summary
Liquibase extension that provides support for SAP Hana DB. Initial Hana DB support is currently implemented in the 2.0.x and 3.0.x branches. The master branch at the moment follows 3.4.x and it's built against version 3.4.2 of Liquibase. The original Liquibase distribution is available at: The official liquibase site is: Released under the Apache 2.0 License with no guarantee whatsoever. This is currently used in some projects I have been involved with. Branch 3.0.x has definitely undergone more testing at this point, but 2.0.x is still used in production with good results. If you give it a go, I'd like to know how it worked for you.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Generate SQL for setNullableStatement
- Gets the foreign key constraints from the result set
- Returns all the foreign key constraints for a table
- Returns a set of foreign key constraints for the specified table
- Generates the SQL for the drop default value
- Retrieves the column data definition for a given column
- Returns the column meta data
- Generate the SQL for the add column
- Returns the default clause for the given column
- Ensures that the createView is valid
- Ensures that the sequence name is ordered
- Ensures that all the required fields are allowed
- Get the database schema name
- Generates the drop primary key
- Checks if is system object
- Generate the create view
- Generates the drop index
- Generates the SQL for the create table
- Validates the table name
- Generates the SQL for a table statement
- Generates SQL for a drop sequence
- Generate the drop table
- Generate SQL for alter sequence statement
- Generate SQL for dropColumn statement
- Generate the SQL for the CreateSequence
- Generate the SQL statement to create an index
liquibase-hana Key Features
liquibase-hana Examples and Code Snippets
Community Discussions
Trending Discussions on liquibase-hana
QUESTION
I am trying to use the Keycloak docker image with a non-standard database (HANA-DB).
Modifying the configuration as described in the documentation worked fine and keycloak connects to the database. The remaining problem seems to be that the Liquibase migrations can not run because Liquibase does not know how to handle HANA-DB out of the box.
Of course, there is an extension library (https://mvnrepository.com/artifact/org.liquibase.ext/liquibase-hanadb/4.0.0) that adds this capability to Liquibase. Now my question: How do I get Keycloak's Liquibase to use this library?
I already tried:
- Packaging the library into its own module and adding a dependency to it in Keycloak's Liquibase module
- Adding the library as a second
resource-root
to Keycloak's Liquibase module
Both did not work, i.e. Liquibase is still not recognizing the "HDB" database.
What would be the correct way to do this?
...ANSWER
Answered 2020-Aug-26 at 14:26It turns out, that adding the library as a second resource-root
in Keycloaks's liquibase module is actually working. It does not get loaded because Keycloak removes liquibase.ext
from the service loader used to find liquibase extensions.
This can be worked around by using the liquibase.scan.packages
system property, though.
For all those trying to make Keycloak working with HANA:
- Overriding the
liquibase.scan.packages
system property causes the library to be loaded - Now, a class (
LoggingService
) from liquibase that is referenced in the liquibase-hanadb library, can not be found because it was introduced in liquibase 3.6 and Keycloak comes with 3.5.5. - When hacking a more recent version of liquibase (3.6.0) into Keycloak's modules, for some reason a changeset only intended for DB2 is being run, causing errors. I suspect an incompatibility between Keycloak's changelogs and the updated liquibase version.
I gave up at this point.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install liquibase-hana
You can use liquibase-hana like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the liquibase-hana component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page