Skip to content

Comment on Introducing the Microsoft Driver for Node.JS for SQL Server

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.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.