Following to this part of documentation https://scala-slick.org/doc/3.0.0/queries.html#inserting, I'm trying to realise insert operation as shown above:
var point = TableQuery[Geopointtable]
val writeQuery = point returning point.map(_.id)
val geoId = writeQuery += GeopointtableRow(0, 50, 40)
val idFromDb = db.run(geoId)
I expected, the last line of code return id of new row in table. Instead it return: "Future()". By the way, in database row creates successfully.
Is there any mistake, or I don't clear understand this part of documentation. May be there another way to retrieve id?