effect icon indicating copy to clipboard operation
effect copied to clipboard

add sql-sqlite-expo

Open fredericrous opened this issue 9 months ago • 2 comments

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

fredericrous avatar Mar 02 '25 22:03 fredericrous

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

fredericrous avatar Mar 02 '25 22:03 fredericrous

@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

nikelborm avatar Nov 04 '25 16:11 nikelborm