bun icon indicating copy to clipboard operation
bun copied to clipboard

Documentation: explain foreign keys support

Open john8329 opened this issue 1 month ago • 0 comments

Hi, long time user of go-pg/bun. It seems that one thing I've missed since the start are foreign keys. I thought the ORM doesn't support them, but digging in the code I found there's actually the WithForeignKeys() method.

I think it'd be super nice if a mention was made in the documentation. Being an ORM it relies heavily on conventions, and knowing what's the preferred way of handling these would help users being more productive.

Thanks

john8329 avatar Nov 27 '25 18:11 john8329