Apple Developer
I am working with Supabase (building a Compose Multiplatform application), and currently the only way to run transaction is by doing rpc calls.
I have a use case where the sql queries to run inside a transaction is dynamically built at runtime time.
So, I am writing here to see if this is possible in Turso so I migrate to it.
Example: imagine you have an app where it creates a folder that can hold different types of files:
- Folder: name
- ImageFile: name, data
- TextFile: name, text
- etc..
The type of files to store in folder is dynamic, meaning you can support different types later, and we shouldn't touch the process of creating a file.
So for this use case, how to make the process of creating new folder with its nested files run all at once inside a transaction?