If you are just going to "Just Write SQL" then I really don't think you should be coding your own Object and Repository classes.
My vision of the "Just Write SQL" paradigm would be a "class" or equivalent that would take a SQL command and return the response from the server. Obviously the response has a few different forms but if you're "just writing SQL" then those responses are database responses and not models or collections of models.
(For the record I think simple ORM type functionality is actually quite useful as your use case moves past the scale of small utility scripts.
If you are just going to "Just Write SQL" then I really don't think you should be coding your own Object and Repository classes.
My vision of the "Just Write SQL" paradigm would be a "class" or equivalent that would take a SQL command and return the response from the server. Obviously the response has a few different forms but if you're "just writing SQL" then those responses are database responses and not models or collections of models.
(For the record I think simple ORM type functionality is actually quite useful as your use case moves past the scale of small utility scripts.
Based on my personal experience, I have seen some raw SQL codes about 200 to 1000 lines in some production source codes,
not readable at all, not easy to change, which is a terrible development experience.
I guess if it is simple CRUD, it does not give too much problem, but it will definitely work in a complex case.