IssueRaiser

> Why is there no ORM that works like this?

> Why is there no ORM that works like this? Because no one wants to write a SQL fragment parser. You would have write a parser that: a) Could be started at an arbitrary place in a query and figure out what it needed to do. b) Would be SQL-dialect aware. (Maybe -- it might be possible to skip this.) Were it not for (a), I'd imagine you could quickly build this by using some kind of debug feature of the database -- sending it a query to parse and getting back a parse tree.

Posted by solidsnack9000 on Mar 10, 2015, 11:21 PM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.7,500 issues0 comments

hackernews (Other)

> Why is there no ORM that works like this?

solidsnack9000Mar 10, 2015, 11:21 PM

> Why is there no ORM that works like this? Because no one wants to write a SQL fragment parser. You would have write a parser that: a) Could be started at an arbitrary place in a query and figure out what it needed to do. b) Would be SQL-dialect aware. (Maybe -- it might be possible to skip this.) Were it not for (a), I'd imagine you could quickly build this by using some kind of debug feature of the database -- sending it a query to parse and getting back a parse tree.

Comments (0)

No comments yet. Start the discussion.

Comment on this issue