-
Notifications
You must be signed in to change notification settings - Fork 206
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to convert batch/batchsamples to use MariaDB instead of H2? #195
Comments
Here is what I tried, but it doesn't work fo rme. :
then add this class to both Mvn task projects:
After doing this, the Caused by: org.springframework.jdbc.BadSqlGrammarException: PreparedStatementCallback; bad SQL grammar [SELECT JOB_INSTANCE_ID, JOB_NAME from BATCH_JOB_INSTANCE where JOB_NAME = ? and JOB_KEY = ?]; nested exception is java.sql.SQLSyntaxErrorException: (conn=146) Table 'jsoncopy.BATCH_JOB_INSTANCE' doesn't exist My code example that reproduces this is here: |
HI @djangofan , Does the |
Ah ok. I've used FlyWay a lot but because I didn't see it in the pom anywhere, I wouldn't have guessed that is how you had it setup. If the The tests pass and when the tests run I do see FlyWay running BUT it is not apparent how FlyWay is loading due to the word FlyWay not appearing anywhere in this source code. I'll probably be able to eventually figure this out, but wanting help since it is not documented well. The enablement of this seems to be related to these application.properties settings? This is my best guess as I start to investigate.
|
I am close:
|
My question should be a simple one: How can I convert batch/batchsamples to use MariaDB instead of H2?
When I run the
mvn clean install
, the tests use a embedded H2 database to do the copy from CSV into H2 tableI just want to convert it to using my MariaDB Docker instance instead.
Is this an easy change? I tried to put datasource properties in the
application.properties
files BUT it didn't work. Looks like it's not that simple. Also,billsetuptask
seems to fail at creating the table: BILL_STATEMENTSThe text was updated successfully, but these errors were encountered: