numRows

fun numRows(connection: Connection, tableName: String, schemaName: String?): Long

Determines the number of rows in the table within the schema based on the supplied connection.

The connection should be open and is not closed during this function. It is the caller's responsibility to close the connection when appropriate.

Return

the number of rows in the table

Parameters

connection

A valid and open connection to a database.

schemaName

the schema containing the table

tableName

the name of the table within the schema