GitBucket
Toggle navigation
Sign in
Files
Branches
1
Releases
Issues
Pull requests
Labels
Priorities
Milestones
Wiki
Fork
: 0
nitta-lab-2017
/
LeftoverRecipe
Browse code
[update] non-primary key method
master
1 parent
ce6259d
commit
d1c2e2a69b941f38a100a9fe7b33d427aaf3f8e9
MatsumotoKeiju
authored
on 9 Jul 2017
Patch
Unified
Split
Showing
1 changed file
+1
-1
■
■
■■■
app/src/main/kotlin/org/ntlab/leftoverrecipe/model/db/RecipeDataRealm.kt
Ignore Space
Show notes
View
2
■
■
■■■
app/src/main/kotlin/org/ntlab/leftoverrecipe/model/db/RecipeDataRealm.kt
mRealm
=
Realm
.
getInstance
(
config
)
mRealm
.
use
{
realm
->
realm
?.
executeTransaction
{
realm
?.
copyToRealmOrUpdate
(
recipeData
)
realm
.
copyToRealm
(
recipeData
)
}
}
}
}
Show line notes below