Thursday 26 December 2019

PostgresSql

I am trying to query a postgresSql server via my WebApp, using pg.When iam compiling however it always throws several errors, because it cant find the modules 'fs', 'net', 'pg-native' and 'tls'. As far as i understood this is because i am querying from a Browser where these modules cant be used.However i found a way to mock the 'dns' module because it is not beeing used.Can i do something like this with the other modules as well or are they beeing used?Also if this doesnt work do i need to set up a server to which i connect when running the webapp and query from there, or can i circument that?If this is not possible are there any good tutorials that not only show some code that works, but also explains the how's and why's?​Thanks in advance

Submitted December 26, 2019 at 12:38PM by ma____x

No comments:

Post a Comment