# X_LOCK_UNSUPPORTED

## Means

a repository has no lock

## Typical cause

db.<table>.lock or lockKey was called on a hand-written Repo that does not implement it

## Fix

`implement lock and lockKey on the driver, or use the shipped postgresDriver()`

[Entity and database](/error-codes#entity-and-database)
