AbsaOSS / balta

Scala library to write Postgres DB code tests with
Apache License 2.0
3 stars 0 forks source link

Add possibility to delete data from table #42

Closed lsulak closed 2 weeks ago

lsulak commented 1 month ago

Background

As the title says. Sometimes, in our tests, data is being inserted into real tables (outside Balta, e.g. a service test in which the server is sending data to DB via a DB layer), and it's a good practice to remove it.

Perhaps all the data from a table, perhaps only certain using WHERE clause (could be in another ticket if it's technically complicated on the first iteration).

Nevertheless, this feature is very good to have as it would make our interactions with DB in some tests easier.