Although Expo offers a SQLite local database connection API, it is not very practical to use, especially for larger projects with more complex data...
For further actions, you may consider blocking this person and/or reporting abuse
Ridiculously helpful article. I've referenced it in multiple issues!
github.com/typeorm/expo-example/is...
github.com/andpor/react-native-sql...
Thanks for sharing it! I'm glad you liked it.
Hi, @jgabriel1 ! Is it possible you'll be updating the article with the new TypeORM API? I mean we have breaking changes here and there like no more Connection and createConnection. Can you look into it? Would be nice! Cheers!
Thanks for this!
Following these instructions, I ran into a small oddity:
If I create a new record, I do not receive the new record's ID with a save operation.
Has anyone else had this issue and any recommendations?
Using:
"typeorm": "^0.2.43"
"expo-sqlite": "~10.1.0",
Hi Jose,
Really enjoyed reading the article. Very clear and helpful.
Thanks
Thank you so much! I'm glad it helped you.
Great walkthrough, thanks! FYI, typeorm v 0.2.31 has now been released with a fix to the regex related problem.
Thanks! Yeah, I just didn't have time to test it with the new patch. I'll make sure to edit that part though.
With the new typeorm (DataSource) API, you can store that in the context instead. But don't forget to initialize it before usage!
Thank you for this awesome article! Would you consider to update it to the latest expo and typeorm version? I am really struggling with getting it to work, especially the migration part.