https://kotlinlang.org logo
#exposed
Title
# exposed
e

Enrico Saggiorato

03/04/2022, 2:46 PM
Hi, I was trying to setup my first project with ktor and exposed but I'm coming across a strange issue... I created a Users table like this:
Copy code
class Users : IntIdTable() {
    val username: Column<String> = varchar("username", 30)
    val email: Column<String> = varchar("email", 255)
    val password: Column<String> = varchar("password", 40)
}
now, if I try to invoke the functions of the Users class, Intellij gives no hints and screams about errors, for example I can't use
Users.insertAndGetId
as stated in the docs. Am I missing something?
h

hfhbd

03/04/2022, 7:46 PM
Users
should be an
object
1
e

Enrico Saggiorato

03/05/2022, 9:52 AM
thanks, it was exactly that