node.js pg-promise how to make general queries -


in app have many duplicate queries , in 1 transaction turns out large nesting. whether possible make general queries reduce amount of duplication , improve readability of code ?

yes, can general queries. can add stored procedures postgres or can create functions , methods in node. it's hard answer question in more depth because it's question answer yes. it's not clear have tried far , not working it's hard answer in more details.


Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

python - Error: Unresolved reference 'selenium' What is the reason? -

asp.net ajax - Jquery scroll to element just goes to top of page -