go-gorm/gorm ? reverse-engineered prompt

Reverse engineered prompt

Build me a friendly ORM library for Go that makes working with databases feel simple and natural.

I want it to handle common things like creating, reading, updating, and deleting records, plus relationships between models such as one to one, one to many, many to many, and polymorphism. It should support hooks before and after save, update, delete, and find, along with eager loading, joins, transactions, nested transactions, save points, and rollback.

Please also include automatic migrations, batch inserts and batch queries, prepared statements, dry run mode, soft delete, composite primary keys, and a clean logging setup. If possible, make it easy to extend with plugins and database splitting support. Keep it developer friendly, well tested, and organized so it feels solid to use in a real app. If you need to check the latest Go docs or best practices while building, go ahead and look them up.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab