play 集成squeryl ORM持久化框架
2015-11-07 11:05
513 查看
Therecommendedversionis0.9.5-6
SupportedScalaversionsare2.10.0,2.9.2,2.9.1,2.9.0,2.8.1and2.8.0SBT
AfterhavingsetupyourprojecttouseSBT(seehowtosetupSBT)
DeclaretheSqueryldependencyintheSBTprojectdefiniition
01 | libraryDependencies++ = Seq( |
02 | "org.squeryl" %% "squeryl" % "0.9.5-6" , |
03 | yourDatabaseDependency |
04 | ) |
05 |
06 | //yourDatabaseDependencyisoneofthesupporteddatabases: |
07 |
08 | val h 2 = "com.h2database" % "h2" % "1.2.127" |
09 | val mysqlDriver = "mysql" % "mysql-connector-java" % "5.1.10" |
10 | val posgresDriver = "postgresql" % "postgresql" % "8.4-701.jdbc4" |
11 | val msSqlDriver = "net.sourceforge.jtds" % "jtds" % "1.2.4" |
12 | val derbyDriver = "org.apache.derby" % "derby" % "10.7.1.1" |
SBT/Maven,youwillhavetodownloadedmanually.
Theremainingstepsare:
Youshouldnowbereadytoinsert,update,deletedata,andofcourserunqueries.
Manualdependencymanagement
IfyouwanttomanageyourdependencieswithoutSBTorMaven,youwillneedthefollowingjars:TheScalaruntimejar,version2.10.0,2.9.2,2.9.1(or2.9.0,2.8.1,2.8.0)
TheSqueryljarfound
here
TheCGLIBcglib-nodep-2.2.jar,found
here
AJDBCdriverforyourdatabase,see
supporteddatabases
相关文章推荐
- [LintCode]Find Median of Unsorted Array O(n) quick sort
- Longest Consecutive Sequence 解答
- play2.0 集成 squeryl
- 触摸事件UITouch的用法
- UIButton内部子控件自定义布局-“UIEdgeInsets”
- 4.Arduino IDE代码如下
- UIBarButtonItemSystemItemFixedItem设定指定宽度的barButtonItem
- hdoj 2767 Proving Equivalences【强连通&&tarjan】
- IOS UISegmentedControl 分段控制器
- UIScrollView的代理(delegate)
- UIScrollView作为第一个初始化View,导致其内的第一个UIimageView只显示一半的高度
- codeforces-446A-DZY Loves Sequences
- explaining of genotyping and DNA resequencing and variant calling
- SQL Interview Question
- 使用代码提示miui系统开启悬浮框
- Codeforces Round #328 (Div. 2)B. The Monster and the Squirrel
- uinavigationBar常用设置
- UISearchBar custom
- ExecuteThread: '33' for queue: 'weblogic.kernel.Default (self-tuning)'] ERROR
- iOS开发:UIImage赋颜色-----给image赋16进制颜色值