Skip to content

Instantly share code, notes, and snippets.

@shkschneider
Created November 27, 2018 09:20
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 shkschneider/9359e5eb7d50abdbee426e09c3a41126 to your computer and use it in GitHub Desktop.
Save shkschneider/9359e5eb7d50abdbee426e09c3a41126 to your computer and use it in GitHub Desktop.
object DataManager {
fun dummy(context: Context) {
val db = MyDatabase.get(context)
db.users().insert(User(login = "user.name"))
db.projects().insert(Project(name = "project.name"))
db.notifications().insert(Notification(msg = "created"))
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment