Does Xano support Row-Level Locks?
Options
Abhishek B
Member ✭
I need to lock Updates to a table row while a Function is executing.
Example: Freeze customer's wallet while a Stock Transaction is processed.
Postgresql offers FOR UPDATE statement for row-level locks as mentioned in docs.
Can Xano support this?
Best Answer
-
Hi, Abhishek. While we currently do not support this natively (I'll move this to feature requests so we can keep track), you could build support for this with a boolean field in the table to denote whether a row is currently locked, and base your logic off of that.
Answers
-
Thank you Chris, a boolean flag is exactly what I implemented.
Categories
- All Categories
- 53 ? Announcements
- 47 ? Releases
- 37 ? Welcome
- 983 ? Help! I'm a Noob
- 125 ? No-Code Front-Ends
- 633 ? Working with APIs
- 439 ? Transforming data
- 126 ? Connect Xano to ...
- 50 ?? Find an Expert
- 348 ❓Other questions
- 35 ? Security
- 22 ✂️ Snippets
- 19 ? Showcase
- 7 ?️ Xano Chatter
- 62 ? Video Tutorials
- 171 ? Request a feature
- 229 ? Report a Bug
- 19 ? Templates & Extensions
- 7 ? Feedback