You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The second option is the most error probe and may be good source for bugs. The option with an ORM doesn't seem like a good option because many developers don't wan to use any ORM at all. A query builder looks like a sweet spot between the flexibility, safety of syntax of the query and the speed of development and building final queries.
given the existence of third party libraries that already do this, and the numerous SQL dialects that SQL builders need to support, I don't think this would be an appropriate fit for the standard library
Shouldn't strings.Builder be enough? I don't think trying to add support for every SQL dialect to build a query concerns the std. As @ianlancetaylor mentioned, maybe showing an API would make things clearer.
Proposal Details
I propose to add a query builder that would help us to write more dynamic SQL queries.
The problem
When writing webapps, it's common to have dynamic queries that are useful, for example, sorting or filtering. Writing
To achieve that we have a few options like:
The second option is the most error probe and may be good source for bugs. The option with an ORM doesn't seem like a good option because many developers don't wan to use any ORM at all. A query builder looks like a sweet spot between the flexibility, safety of syntax of the query and the speed of development and building final queries.
Related issues:
The text was updated successfully, but these errors were encountered: