我开始使用Slick作为遗留数据库,我想通过对生成的查询进行非常简单的单元测试来驱动东西。 Slick选择的别名有点烦人,我非常希望能够控制它们。有办法吗?
失败的考试可能比散文更清晰:
[info] QueriesSpec:
[info] ActivityGroup
[info] - should join with Crmcategory *** FAILED ***
[info] "select [x2."id", x2."name", x2."crmcode", x3."name" from "activitygroup" x2, "crmcategory" x3 where x3."id" = x2."crmcategory"]" did not equal "select [ag."id", ag."name", ag."crmcode", c."name" FROM activitygroup ag, crmcategory c where ag.crmcategory = c.id]" (QueriesSpec.scala:9)