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 -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -