tableExist

open fun tableExist(database: SQLiteDatabase, tableName: String): Boolean

tests if a given table exist. can be used to trigger a create table on database upgrades

Return

true when table exist

Parameters

database

database to check

tableName

table name to look for