How to pessimistic locking
问题 I want to lock my table, but it didn't work. How can I handle it? Appreciate any advice! Typescript Typeorm Postgres //src public async checkDBTable(builderAddress: string): Promise<boolean> { // 1. find DB table by key(builderAddress) // 2. return true({key: value} exist) or false const info: InfoEntity|undefined = await this.findOne(builderAddress, { lock: {mode: 'pessimistic_write'} }); return nonceInfo !== undefined; } //result error: PessimisticLockTransactionRequiredError: An open