columnExist

open fun columnExist(database: SQLiteDatabase, tableName: String, columnName: 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