sromscala的orm框架
scala的orm框架,相比其他orm更为简洁
// Declare a model: case class Artist( name : String, genres : Set[Genre] ) case class Genre( name : String ) // Initialize SORM, automatically generating schema: import sorm._ object Db extends Instance( entities = Set( Entity[Artist](), Entity[Genre]() ), url = "jdbc:h2:mem:test" ) // Store values in the db: val metal = Db.save( Genre("Metal") ) val rock = Db.save( Genre("Rock") ) Db.save( Artist("Metallica", Set(metal, rock) ) ) Db.save( Artist("Dire Straits", Set(rock) ) ) // Retrieve values from the db: // Option[Artist with Persisted]: val metallica = Db.query[Artist].whereEqual("name", "Metallica").fetchOne() // Stream[Artist with Persisted]: val rockArtists = Db.query[Artist].whereEqual("genres.item.name", "Rock").fetch()
评论
SqlSmart.NET的ORM框架
SqlSmart是一个DotNet类库,它可以充分利用codeinsight,面向对象技术来帮助程序员更快的,更准确到编写sql,这样的sql以容易重构的。听起来陌生?这是想法我之前并没有在其他ORM
SqlSmart.NET的ORM框架
0
YB.ORMC++的ORM框架
YB.ORM库的目标是简化编写C++代码中处理SQL数据库。我们的目标是提供一个方便的接口,类似SQLAlchemy或Hibernate(JAVA)。库本身是跨平台的,支持各种SQL方言:如sqlit
YB.ORMC++的ORM框架
0
EntityFramework.NET的ORM框架
EntityFramework是微软公司为.NET开发人员推出的一个ORM框架,来实现对数据库单表数据的创建、读取、更新和删除操作,也就是所谓的CRUD(C:Create/R:Read/U:Updat
EntityFramework.NET的ORM框架
0
DieselRust 的 ORM 框架
Diesel是一个安全可扩展的Rust编程语言的ORM框架和查询构建工具。Diesel可避免运行时错误,提供最好的性能。示例代码:extern crate diesel_demo;extern cra
DieselRust 的 ORM 框架
0
ObjectiveSqlJava 的 ORM 框架
ObjectiveSQL(简称: objsql,中文译为: 对象化SQL或者面向对象SQL)是一种O
ObjectiveSqlJava 的 ORM 框架
0