Skip to content

Instantly share code, notes, and snippets.

@yaroot
Created March 15, 2016 08:19
Show Gist options
  • Save yaroot/d45ee9a0180e11ccd8d2 to your computer and use it in GitHub Desktop.
Save yaroot/d45ee9a0180e11ccd8d2 to your computer and use it in GitHub Desktop.
object FinagleMysqlParameter {
implicit def wrapOption[A](value: Option[A])(implicit ev: CanBeParameter[A]): Parameter = {
value match {
case None => NullParameter
case Some(a) => Parameter.wrap(a)
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment