【文件属性】:
文件名称:blunt:Doobie的事态类型安全查询生成器
文件大小:17KB
文件格式:ZIP
更新时间:2021-05-13 05:45:15
cats query scala database shapeless
钝
blunt是使用制作的事实查询构建器。 blunt提供了一个简单的接口来将数据库架构映射到案例类,并提供了一种易于使用的类型安全的构造查询的方式。 您将获得doobie提供的所有有原则的函数编程,以及一层额外的可组合性和简洁性。
例子
import doobie . imports . _
import blunt . _
val xa = DriverManagerTransactor [ IOLite ](
// Set up your doobie transactor
// ...
)
// Define case classes to match your schema
case class Post ( id : Int , title : String , subtitle : Option [ String ], text : String )
case
【文件预览】:
blunt-master
----project()
--------build.properties(20B)
--------Dependencies.scala(102B)
----src()
--------test()
--------main()
----blunt_logo.svg(3KB)
----LICENSE(1KB)
----build.sbt(2KB)
----README.md(2KB)
----.gitignore(22B)