LLMs make "I need to shoehorn a language I already know well into an environment where it doesn't really belong" an unnecessary extravagance.
Just have an AI write plpgsql. If what you are doing is too complicated for plpgsql you are doing something stupid.
Then you will love plv8.
Load an entire Chrome V8 or NodeJS V8 into Postgres to have JS pg modules.
JS now runs on phones, on web servers, and inside your postgres relational database. Add Mongo and vibe code JS for redis or memcached for bonus internet points.
If Rust is rewritten in JS, then Bun can finally return to its roots.
https://github.com/plv8/plv8
END half satire (plv8 is real, though)