SQLite ORM
Ben Green
With the current version of expo-sqlite, it's not possible to drop/rename columns or add/remove column constraints. This makes altering the database a very messy task. Other existing SQLite ORMs for the web/node, such as Sequelize, already support this as well as out of the box support for fetching related models.
Alen Toma
I have build an orm wrapper around expo.Sqlite. check it out.
https://www.npmjs.com/package/expo-sqlite-wrapper
Diego
Try typeorm, it works nice with expo driver and have migrations option
Ben Green
Diego: Huh, was completely unaware that works with Expo. I see it supports my requested ORM features (altering existing tables/columns and relations) but do those features work in expo?
Diego
Ben Green: yes, i have projects running with typeorm + expo sql driver and migrations
Technologie Dev
Diego: for me i get your error code: 5, message: "could not prepare statement (23 not authorized)"
Diego
Technologie Dev: you need use the package @typeorm/browser with reflectmetadata
Technologie Dev
Diego: thank bro