Scala Slick 数据库视图 [英] Scala Slick Database Views
本文介绍了Scala Slick 数据库视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有什么办法可以在数据库视图中使用 slick 吗?当我运行标准代码生成器时,没有列出关于视图的任何内容.我似乎也无法在文档中找到任何提及这样做的能力(或缺乏能力)的内容.
Is there any way to use slick with database views? When I run the standard code generator, nothing about views are listed. I also can't seem to find anything in the documentation mentioning the ability (or lack thereof) to do so.
推荐答案
是的,使用视图是完全可能的,但是您需要稍微调整代码生成.有关更多具体信息,请参见此处:https://github.com/slick/slick/issues/1022(mobiworx"的评论)
Yes it is perfectly possible to use views, but you need to tweak code generation a tiny bit. See here for more specific information: https://github.com/slick/slick/issues/1022 (comment of "mobiworx")
这篇关于Scala Slick 数据库视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文