> (1) that it's unstructured, so getting data into or out of SQL involves strings
Structured types are in SQL since 1999.
Structured types are in SQL since 1999.
People should really look into JOOQ to see what a SQL friendly ORM looks like.
Your "parameterized" queries are still serialized strings. Many language bindings for SQL interfaces don't have good support for serializing data types, so you will often see things like ?::datetime in the template string. Some don't have the ability to parameterize column names (or have subtle bugs) either.
> People should really look into JOOQ to see what a SQL friendly ORM looks like.
I've never heard of JOOQ. Do you know of a good introduction?
How else would you do it, short of a binary query format?