13

SIQ 的当前状态Christopher Vogt 在ScalaDays 2011上介绍。它展示了查询的工作方式和外观,但据我所知,没有关于如何表示这些类型的概念,例如是否仍然需要编写样板代码来向 Scala 解释数据库结构。

F# 3.0 添加了类型提供程序(Don Syme 的 PDC 演讲:视频;Tomas Petricek 的 GOTO Copenhagen 演讲:视频幻灯片博客文章),这使得基本上无需手动编写或生成数据库(或其他数据提供者)和语言/类型系统,因为语言可以直接使用类型提供程序从数据库本身查询结构信息。

ScalaIntegratedQuery 是否能够在不需要用户自己编写样板代码的情况下向 Scala 编译器提供数据库的类型/关系?

4

1 回答 1

12

The answer is YES. We will offer an automatic solution, without manual boilerplate. The current SIQ prototype uses code-generation, but this aspect is not very developed yet, which is why I did not show it at Scala Days. Work on SIQ resumes, when Stefan Zeiger and I start our jobs in Lausanne on 3rd of October. We will review F# type providers for further inspiration. Thank you for the hint!

于 2011-09-15T13:25:16.070 回答