Join Slack
Powered by
fun insertBlog(blog: Blog) { return tr...
# exposed
p
Polis Gints
08/06/2019, 12:02 PM
fun insertBlog(blog: Blog) { return transaction { Blogs.insert { it[message] = blog.message } } }
s
spand
08/06/2019, 12:14 PM
fun insertBlog(blog: Blog) { return transaction { Blogs.insert { it[message] = blog.message }[blogId] } }
p
Polis Gints
08/06/2019, 12:17 PM
yeah.. cool it works. To return whole inserted object, I should do select correct?
Polis Gints
08/06/2019, 12:18 PM
many thx
Open in Slack
Previous
Next