spring-test-dbunit icon indicating copy to clipboard operation
spring-test-dbunit copied to clipboard

It is not possible to have multiple connections if databases use different syntax

Open Nidum opened this issue 6 years ago • 1 comments

On our project we have 2 databases: MySql and HBase under Apache Phoenix library. The thing is, that these two databases need to use different databaseOperationLookup classes, because MySql uses standard "Insert", while Phoenix supports "Upsert" operation only (Upsert operation inserts rows into a database table if they do not already exist, or updates them if they do.). It would be nice, if a user could configure different databaseOperationLookup classes for different db connections.

Nidum avatar Apr 09 '19 08:04 Nidum

Unfortunately, I haven't seen anything related to Phoenix in DBUnit. As this project relies on what DBUnit supports, it would be necessary to first submit an issue in the DBUnit project, this support could probably be done based on logic similar to what can be found in org.dbunit.ext.mssql.InsertIdentityOperation.

Once done, I would then be able to provide support for it here too.

ppodgorsek avatar Apr 12 '19 17:04 ppodgorsek