Add support for skipping specific timescaleDB schemas during cleanup#553
Conversation
|
Maybe it's not the best solution, but the current flow doesn't allow to skip tables in timescaledb's internal schemas. As an alternative, I guess, it's possible to introduce new DBType |
|
Hey @dfitisoff-k, thanks a lot for the PR!
If the list of tables and schemas is constant I think we should add TIMESCALEDB db type. Let's keep DBUnitConfig for dynamic things. Also if we opt for adding a new type I think we could extract the list if reserved words and schemas from DBUnitConfig#Constants to specific classes like MYSqlConfig, TimesSaleConfig and so on but I can do the refactoring later, let's focus on fixing Timescale for now, what do you think? Cheers! |
|
@rmpestano I changed the flow a little bit to fix timescaledb (don't like the approach, it needs refactoring). However, I can't really add any test or test it locally (I guess, some problems with my setup). |
|
Thanks for the diagram @dfitisoff-k, maybe I'm overlooking so let's make sure we're in the same page, this is the piece of code that later I want to move to each, lets call it "DBConstants" for now: I see only a list of system schemas being DBType specific so let's say "DBConstants" would be an interface which for now would have just a In |
|
By the way, thanks for the contribution, merging it now and I'll release it once we have #555 |
I dunno, maybe I'm not really that deep into By the way, @rmpestano is there any chat or something like that to join? I'd be glad to contribute to database-rider and would like to know is there any roadmap or so |


Why
Currently, when using timescaledb (which is built as an extension for PostgreSQL), DbRider cleans its internal tables, which breaks subsequent tests. (see repo with reproduction https://github.com/dfitisoff-k/database-rider-timescaledb-issues)
Description
skipSchemaswhich would allow to skip reading tables from user-specified schemas