Checking if entry exists
I'm trying to create a login app. I want it to do nothing more than either store the account info on a db if the username is not already used. Problem is, no matter what I try, I cannot check if the username is already in the db
I've tried to get both LiveData from my query, as well as String?, as shown below with no success
@Entity(tableName = "Users_table")
data class User(
@PrimaryKey var username: String,
@ColumnInfo var firstName: String,
@ColumnInfo var lastName: String,...