NepMods/ember ? reverse-engineered prompt
Reverse engineered prompt
Build me a Go ORM that feels easy to use like Laravel Eloquent.
I want one simple package I can import, then use for normal CRUD, fluent queries, and raw SQL when I need it. It should work with PostgreSQL, MySQL, and SQLite, support models with struct tags, automatic primary keys and timestamps, and let me define relationships like one to many, belongs to, and many to many with eager loading so I don’t run into N plus 1 problems.
Please also include migrations and schema helpers, soft deletes, transactions, pagination, aggregates like count and sum, and a way to add custom query methods or macros. It should support hooks or lifecycle events around create, update, delete, and restore, plus global scopes for things like active records.
I’d also like read and write splitting for master and replica connections, with sticky reads in a request if needed. If anything is unclear, look up the current docs online and make sensible defaults.
Are you gonna build this?
make sure you review the code using coderabbit