fun createTable(db: SQLiteDatabase, ifNotExists: Boolean) { val constraint = if (ifNotExists) "IF NOT EXISTS " else "" db.execSQL("CREATE TABLE $constraint'SIMPLE_ADDRESS_ITEM' ('_id' INTEGER PRIMARY KEY ,'NAME' TEXT,'ADDRESS' TEXT,'CITY' TEXT,'STATE' TEXT,'PHONE' INTEGER);") }
Creates the underlying database table .