Not sure if SQL drivers can return a structured object.
SQLite driver in both Python, Node and Kotlin; AFAIK, doesn't
Know whether the column, or generated column, is JSON
GROUP BY only returns the first column. It can be fixed with json_group_array or json_group_object, but the driver itself doesn't realize that the data is JSON, therefore will return string instead.
You post a number of "issues" and mention various databases. I'm not sure what the aim is of your question.
With everytihng, there are design limitations that much is a given. The question is what do you need as an end result and what are the tools that best fit that end result.
Choose a DB that fits, and work with the constraints of that database.
If you have something really concrete, then that may help much better to get to a solution
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
SQLite driver in both Python, Node and Kotlin; AFAIK, doesn't
GROUP BY
only returns the first column. It can be fixed with json_group_array or json_group_object, but the driver itself doesn't realize that the data is JSON, therefore will return string instead.I haven't tried enough PostGRES or MySQL native drivers in any of the languages I used, to tell all these aspects.
I have tried to create a SQLite ORM with this kind of sanitization as well. However, it doesn't fix the fact that, no matter what I do, identifiers are case-insensitive.
Normally, I would use a prepared statement, but
I know no way to make SQLite strongly typed, with native drivers, in TypeScript and Kotlin.
You post a number of "issues" and mention various databases. I'm not sure what the aim is of your question.
With everytihng, there are design limitations that much is a given. The question is what do you need as an end result and what are the tools that best fit that end result.
Choose a DB that fits, and work with the constraints of that database.
If you have something really concrete, then that may help much better to get to a solution