Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
lihaoyi committed Aug 29, 2024
1 parent 819a3ce commit ffec1dd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scalasql/test/src/WorldSqlTests.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1433,16 +1433,16 @@ object WorldSqlTests extends TestSuite {
}
db.run(
City.insert.columns(
_.id := CityId(31337),
_.id := CityId(313373),
_.name := "test",
_.countryCode := "XYZ",
_.district := "district",
_.population := 1000000
)
)

db.run(City.select.filter(_.id === 31337).single) ==>
City[Sc](CityId(31337), "test", "XYZ", "district", 1000000)
db.run(City.select.filter(_.id === 313373).single) ==>
City[Sc](CityId(313373), "test", "XYZ", "district", 1000000)
// -DOCS

// You can also use `TypeMapper#bimap` for the common case where you want the
Expand Down

0 comments on commit ffec1dd

Please sign in to comment.