### Feature Description Add select lock (the `FOR UPDATE` + `FOR SHARE LOCK` clauses in `SELECT` statements) support in `SapDriver`. The feature already exists in most drivers (I think SAP might be the only one not supporting it). ### The Solution Similar to other drivers. Minor difference is `IGNORE LOCKED` (`SKIP LOCKED` in other drivers). - [FOR UPDATE clause](https://help.sap.com/docs/hana-cloud-database/sap-hana-cloud-sap-hana-database-sql-reference-guide/select-statement-data-manipulation#loio20fcf24075191014a89e9dc7b8408b26__for_update_clause) - [FOR SHARE LOCK clause](https://help.sap.com/docs/hana-cloud-database/sap-hana-cloud-sap-hana-database-sql-reference-guide/select-statement-data-manipulation#loio20fcf24075191014a89e9dc7b8408b26__for_share_lock_clause) ```ebnf <select_option> ::= { <for_update_clause> | <for_share_lock_clause> } <for_update_clause> ::= FOR UPDATE [ OF <update_column_name_list> ] [ { <wait_nowait> | IGNORE LOCKED } ] <for_share_lock_clause> ::= FOR SHARE LOCK [ OF <update_column_name_list> ] [ <wait_nowait> ] [ IGNORE LOCKED ] <wait_nowait> ::= { WAIT <unsigned_integer> | NOWAIT } ``` ### Considered Alternatives The current alternative is writing raw SQL. ### Additional Context _No response_ ### Relevant Database Driver(s) - [ ] aurora-mysql - [ ] aurora-postgres - [ ] better-sqlite3 - [ ] cockroachdb - [ ] cordova - [ ] expo - [ ] mongodb - [ ] mysql - [ ] nativescript - [ ] oracle - [ ] postgres - [ ] react-native - [x] sap - [ ] spanner - [ ] sqlite - [ ] sqlite-abstract - [ ] sqljs - [ ] sqlserver ### Are you willing to resolve this issue by submitting a Pull Request? Yes, I have the time, and I know how to start.
Activity