sequential queries in one transaction

Please provide the following:

  1. SDK Version:3.20.3
  2. Platforms(Android/iOS/web/all):Android

Hi, i’ developing my first reactive native app with expo. I’m using expo sqlite for database interactions.
I’m not able to do this (in a whole transaction with commit/undo)

  1. select
  2. select basing on results of first select
  3. update basing on results of second select

I saw articles about async/awayt but with no success. Could you post me some example code or link?
Thanks

Hi

By the way, the SDK would be something like 37 or 38.

e.g. if you run expo diagnostics then in the npmPackages section it should have a react-native entry that shows you the SDK version. e.g. the following line is from an SDK 36 project:

      react-native: https://github.com/expo/react-native/archive/sdk-36.0.1.tar.gz => 0.61.4 

Could you give a more detailed example of what you’re trying to do? e.g. it would help if you gave us the table structures with some example data and example queries you’re trying to run.

1 Like

In case it helps, I searched around on GitHub to see if I could find some example code. It was harder to find examples than I expected, but I did find the following:

Maybe it will help.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.