文档介绍:.ScalaLanguage-IntegratedConnectionKitJanChristopherVogtSoftwareEngineer,EPFLLausanneAdatabasequerylibraryforScala"select*fromperson"orfor(p<-Persons)yieldpidname1Martin2Stefan3Chris4Eugene……personincludinginsert,update,delete,DDLORMisaswamp/photo/cypresses/SlickistoHibernateandJDBC,whatScalaistoJavaandGroovySlickEasy,Concise,Scalable,plexScalable,ifusedwithcautionHQL:unsafe,positionalCriteriaQueries:positional,verboseJDBC/AnormSQL:unsafe,positionalORM?:FunctionalProgrammingRelationalSQLrowsexpressionsNULL…prehensionstuples/caseclasseslambdasOption…essstoreddatalikecollectionsunifiedsessionhandlingConciseScalasyntaxfetchingresultswithoutpainScalesnaturallystatelessexplicitcontrolSafenoSQL-pile-timechecks(names,types,typos,etc.)Composableit‘sScalacode:abstractandre-usewitheaseEasyIt‘sScala–(===3).map()for(p<-===3):Intname:Stringage:IntUnifiedSessionManagementUnified:URL,DataSource,.=("jdbc:h2:mem:test1",driver="").{//executequerieshere}()(dataSource)(JNDIName)valname=...//<-().add(( .add(("age",20)) .add(("age",25))))for(p<->20||<25)yieldpConcise:queriesHibernateCriteriaQueries