4 ms·
Ask HN: Are there any libraries that auto-build the SQL FROM statement?
Im looking for a library that will auto build the SQL FROM statement from the SELECT and WHERE fields that are passed. Does such a thing exist? I built my own library but want to replace it with something that is battle tested.
Agora Key Words: SQL Query Generate ON Statement Generator
- throwaway888abc 6y agoWhy not to use ORM ?
- piece-meal 6y agoIve looked into ORMs but couldnt find the functionality I was looking for. Is there a name for what I need? From what I found, it seems you need to create a object (pointer to table), which can only find tables one degree away from it (e.g. backref or foreign keys)
- SNACKeR99 6y agoIt's not clear to me what you are asking. How can you derive a FROM clause from SELECT * ? Perhaps you could provide an example?