Closed thiagodp closed 6 years ago
@mlaanderson , I've added a Pull Request.
@thiagodp , those changes look good. Thanks.
I'm not a software developer, I'm a hardware engineer, but I needed a flexible tool for my test lab. Bear with me as I figure git and versioning out.
Since you got it working, I'm going to close this issue.
I'm not a software developer, I'm a hardware engineer, but I needed a flexible tool for my test lab. Bear with me as I figure git and versioning out.
@mlaanderson Hey, you're doing a great job with database-js
! Many thanks!
Currently,
Connection
currently receives aconnectionString
:Sometimes it is desirable to create a connection passing parameters, such as in
ConnectionObject
, or maybe using a plain object.So, to adjusting
Connection
's constructor to accept both a string or aConnectionObject
would be:To receiving a plain object with connection properties, I think it would be better changing
ConnectionObject
instead ofConnection
. In this case,ConnectionObject
could have a static constructor-like method:And then we could create a connection from a plain object:
Wouldn't it be nice?