Does Xano support Row-Level Locks?

Options
Abhishek B
Abhishek B Member
edited January 2023 in ? Request a feature

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

  • Chris Coleman
    Chris Coleman Administrator

    ADMIN

    Answer ✓
    Options

    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