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

countRowsInTable

open static fun countRowsInTable(jdbcTemplate: JdbcTemplate, tableName: String): Int

Count the rows in the given table.

Parameters

jdbcTemplate - the JdbcTemplate with which to perform JDBC operations

tableName - name of the table to count rows in

Return
the number of rows in the table