Skip to content

Commit c69a84c

Browse files
authored
Update readme.md
1 parent ca5af85 commit c69a84c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

readme.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ dbClient.transaction{ db =>
3737
// Adding up population of all cities in China
3838
val citiesPop = db.run(City.select.filter(_.countryCode === "CHN").map(_.population).sum)
3939
// SELECT SUM(city0.population) AS res FROM city city0 WHERE city0.countrycode = ?
40+
4041
println(citiesPop)
4142
// 175953614
4243

@@ -49,6 +50,7 @@ dbClient.transaction{ db =>
4950
)
5051
// SELECT city0.name AS res__0, city0.population AS res__1
5152
// FROM city city0 ORDER BY res__1 DESC LIMIT ? OFFSET ?
53+
5254
println(fewLargestCities)
5355
// Seq((Karachi, 9269265), (Istanbul, 8787958), (Ciudad de México, 8591309))
5456
}

0 commit comments

Comments
 (0)