Picture taken from their Twitter
The surface area is huge. This is not an SQL database where you can just change the ORM’s backend.
If you don’t use anything from the engine itself, implement everything from scratch, only using the engine as an entry point that launches your own code, and pay unity two thousand dollars per year per seat for that privilege - I guess porting should be fairly easy.