spring-framework / org.springframework.test.jdbc / JdbcTestUtils / deleteFromTables

deleteFromTables

open static fun deleteFromTables(jdbcTemplate: JdbcTemplate, vararg tableNames: String): Int

Delete all rows from the specified tables.

Parameters

jdbcTemplate - the JdbcTemplate with which to perform JDBC operations

tableNames - the names of the tables to delete from

Return
the total number of rows deleted from all specified tables