On Sun, Sep 10, 2017 at 11:31 AM, <main.i...@gmail.com> wrote:

> Modern ORMs at least more type-safe than SQL: there is no work with
> strings, only with autogenerated constants. Also ORMs abstract you not only
> from SQL coding, but also from specific for DBMS SQL: with ORM you can
> easily switch PostgreSQL to MySQL.
>
>
Sure, those are true. If you consider type safety a benefit worth the
trade-off of all the overhead. I don't. As for the DB changing, I don't
think that occurs often enough in the real world to matter. The reason ORMs
support multiple databases is because they have to support *your* database
of choice; not because anyone ever actually changes mid-stream. You could
argue that it's easy to use one in development or testing (such as sqlite3)
and another in production, but that leads to production errors.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to