I don't write for Node nor SQL Server, but that connection string looks gnarly. Is there a reason for not using a plain object that could then be merged with a set of internal defaults, then serialized from there? Ruby uses this pattern often, it's very clean and idiomatic.
Comments
I don't write for Node nor SQL Server, but that connection string looks gnarly. Is there a reason for not using a plain object that could then be merged with a set of internal defaults, then serialized from there? Ruby uses this pattern often, it's very clean and idiomatic.
Yes. It is standard on windows to use connection strings. Also it stops then node.js driver being coupled to particular SQL client versions.
It does look rather gnarly but if you work with it for a bit, you will find that connection strings are incredibly powerful.