Created
March 15, 2016 08:19
-
-
Save yaroot/d45ee9a0180e11ccd8d2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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