Skip to content

Instantly share code, notes, and snippets.

@tomjadams
Last active July 11, 2017 08:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tomjadams/3cd23ee0492277acaf28b64e05a37c79 to your computer and use it in GitHub Desktop.
Save tomjadams/3cd23ee0492277acaf28b64e05a37c79 to your computer and use it in GitHub Desktop.
object WorkDetailsDataSource extends DataSource[WorkIdLocaleId, Option[Work]] {
override def name = "WorkDetails"
override def identity(i: WorkIdLocaleId) = (name, i.identity)
override def fetchOne(id: WorkIdLocaleId) = ...
override def fetchMany(ids: NonEmptyList[WorkIdLocaleId]) = {
...
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment