admin管理员组文章数量:1405636
I am working with expo-SQLite and and drizzle.
It hasn't happened yet, but incase a migration fails, I would like to just clear the local database and start over. For my use case its fine to clear the local data as the next step would be to just sync with the backend and reload the data when the user re-authenticates any.
Looking at the documentation, there does seem to be a "reset" call. The useMigration hook returns a success or an error. Ideally I would like to clear everything and then rerun the migrations/db initialization.
Is there currently a way to do this with Drizzle? I know other orms have something like this like watermelonDb has "unsafeResetDatabase"
本文标签: mobileDrizzle Expo Database resetStack Overflow
版权声明:本文标题:mobile - Drizzle Expo Database reset - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744268475a2598063.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论