Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/oop/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Scala 什么';s用于排除的Squeryl语法(即!=)?_Scala_Squeryl - Fatal编程技术网

Scala 什么';s用于排除的Squeryl语法(即!=)?

Scala 什么';s用于排除的Squeryl语法(即!=)?,scala,squeryl,Scala,Squeryl,执行简单的Squeryl数据库查找,但尝试排除一个值。我试过: j.id不排除作业和j.id!=作业排除 但是,第一个触发编译器错误,第二个触发运行时错误 整个交易: from(DB.jobs)(j => where((j.startTime >= todayStart) and (j.startTime <= todayEnd) and (j.userId === userId) and (j.teamId === teamId

执行简单的Squeryl数据库查找,但尝试排除一个值。我试过:

j.id不排除作业
j.id!=作业排除

但是,第一个触发编译器错误,第二个触发运行时错误

整个交易:

from(DB.jobs)(j =>
      where((j.startTime >= todayStart)
      and (j.startTime <= todayEnd)
      and (j.userId === userId)
      and (j.teamId === teamId)
      and (j.startOrder >= index)
      and (j.id not jobExclude))
      select (j)).toList
from(DB.jobs)(j=>
其中((j.startTime>=今天开始)
和(j.startTime=索引)
和(j.id不排除)
选择(j)).toList

谢谢

由Squeryl小组提供:

不等于是

因此,从更大的角度来看:

(job.id jobExclude)

功劳