在Rails中,这非常方便,因为开发人员可以通过rails c进入, 您可以使用现有模型(如
rails c
user_with_no_password = User.where(密码:无)
如何在Scala中实现这一目标?
user = UserDAO.all
^ error: not found: type UserDAO
如果使用sbt,则可以在sbt外壳程序中使用console命令来启动Scala REPL,可以使用项目中的所有代码。
console