effect
effect copied to clipboard
add sql-sqlite-expo
Type
- [ ] Refactor
- [x] Feature
- [ ] Bug Fix
- [ ] Optimization
- [ ] Documentation Update
Description
add expo-sqlite to @effect/sql for use when developing react native apps with expo
Related
- Related Issue #
- Closes #4544
notice I put a singleton there, dbRef, Effect might offer alternatives. also closeSync would in some cases be called even tho the db connection was not open, so I wrapped it in a try catch
@subtleGradient Do you have time and resources to put this PR into your https://github.com/effect-native/effect-native/ repo? And package it? It would be very nice to have this packaged, instead of copy-pasting, while it's not merged
BTW, since I needed this expo-sqlite for my own project, I refactored and improved it a bit