def chebiByAccession(accNum: Rep[Int]) = for {compound <- chebi.Tables.Compoundsif(compound.chebiAccession === s"chebi:$accNum")} yield compound.idval chebiByAccession = Compiled(chebiByAccession _)val someChebi = db run chebiByAccession(15635).result
def chebiByAccession(accNum: Rep[String]) =
chebi.Tables.Compounds.filter(_.chebiAccession === accNum).map(_.id)
Perhaps something like LiteralColumn("chebi:") + accNum. That should force it to use the lifted + rather than string +.
--
---
You received this message because you are subscribed to the Google Groups "Slick / ScalaQuery" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scalaquery+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/scalaquery/1362432a-9510-49ff-88d8-c6e0943a617c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.