Thread
#exposed
    e

    Enrico Saggiorato

    6 months ago
    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:
    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?
    hfhbd

    hfhbd

    6 months ago
    Users
    should be an
    object
    e

    Enrico Saggiorato

    6 months ago
    thanks, it was exactly that