Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GRDBの差分更新 #10

Closed
Moriya-Taichi opened this issue Nov 19, 2020 · 3 comments
Closed

GRDBの差分更新 #10

Moriya-Taichi opened this issue Nov 19, 2020 · 3 comments

Comments

@Moriya-Taichi
Copy link
Owner

#8 これではCoreDataについての差分更新をやっていたが
よく考えたらGRDBでもやらなければ

@Moriya-Taichi
Copy link
Owner Author

これってどんな感じになるんだろうか
保存する時にtry でやってるから既に存在している時はerrorがthrowされる? 

@Moriya-Taichi
Copy link
Owner Author

Moriya-Taichi commented Nov 22, 2020

updateではなくsaveを使うとあった場合はupdate, ない場合はcreateしてくれるのでこれを使う
diffで消されたbookだけ見ておく

@Moriya-Taichi
Copy link
Owner Author

Done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant