Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Abstract config and reuse connection? #74

Open
rsmolkin opened this issue Jul 17, 2017 · 0 comments
Open

Abstract config and reuse connection? #74

rsmolkin opened this issue Jul 17, 2017 · 0 comments

Comments

@rsmolkin
Copy link

Hi, I'm just starting to get my feet wet with Node.js. I'm looking for a way to connect to and use SQL Server similar to how CFQUERY works in ColdFusion.

I'd like to abstract out the SQL Server database login credentials out to a config setting saved on the server, but not necessarily available to all developers. They should be able to query the DB but they don't need to know the creds.

Also, is it necessary to open and close a connection for every query in an app? Or is it possible to leave the connection open and have multiple queries run over the same connection? In ColdFusion it was a server setting, and most queries would run over the same connection that would just stay open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant