Rodrigo Silva
05/16/2020, 5:31 PMRyan
05/16/2020, 5:34 PMRodrigo Silva
05/16/2020, 5:36 PMRyan
05/16/2020, 5:39 PMRyan
05/16/2020, 5:39 PMRyan
05/16/2020, 5:40 PMRodrigo Silva
05/16/2020, 5:40 PMRyan
05/16/2020, 5:41 PMval id = StarWarsFilms.insertAndGetId {
it[name] = "The Last Jedi"
it[sequelId] = 8
it[director] = "Rian Johnson"
}
Ryan
05/16/2020, 5:41 PMRodrigo Silva
05/16/2020, 5:53 PMRyan
05/16/2020, 5:57 PMRyan
05/16/2020, 5:57 PMRyan
05/16/2020, 5:57 PMRodrigo Silva
05/16/2020, 6:01 PMPersonTable.insert {
it[PersonTable.name] = "foo"
}
I use it that way. Just see on lines 8 and 9. And worked.
The problem is that the name of the table and the schema needs to be passed via parameter. So I changed it, lines 14 down.