![]() It means that you're calling the constructor of the MyDatabase class multiple times, which can cause problems. Here, the database doesn't refer to a physical file on the device, but rather the MyDatabase class that you wrote. In this case, the error message is actually a bit confusing, and I've changed it so it's clearer in the next moor version. This is absolutely the right place to ask these kinds of questions! If moor is too hard to use, the documentation and error messages should be improved. I appreciate any assistance and am sorry if this is not the right place to ask these kinds of questions. Where can I find the db.sqlite file in order to delete it? I couldn't find it in my project or in any other directory.How can I wipe everything and start from the beginning without having to create a new project?. ![]() ![]() I also forgot my schema version, therefore I'm a bit stuck. When these two databases use the same QueryExecutor, race conditions will occur and might corrupt the database. Unfortunately, I messed up things and now I'm getting the following warning:įlutter: WARNING (moor): It looks like you've created the database MyDatabase multiple times. I did some more coding where I had to update my table, after having some issues I just wanted to start from scratch, so I deleted and reinstalled the app on the simulator hoping to delete the db.sqlite file and start from the beginning. Then I wanted to add a column, so I first added the new column, increased the schema version, defined a migration strategy and then run the build_runner. Nevertheless, I managed to create a sqlite database with storing data, etc. If this is not appropriate, I apologize and please delete this post. I'm pretty sure this is not a bug, but I messed up my code and can't find an answer in the internet and within the docs which is the reason I'm asking here.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |