I am using ScalaQuery to access PostgreSql. Datais a table with an auto-incrementing key key with a name idthat is defined as def id = column[Long] ("id", O NotNull, O PrimaryKey, O AutoInc, O DBType "serial"). I use Data.insert(name, filename)to create a new record Data. Is there a way to get a idnewly created record? The method insertreturns only the int value returned executeUpdate.
source
share