============================== SQL Connection String Builder for node.js. Modeled after .NET SqlConnectionStringBuilder class
Helps transition from .NET to node.js
With npm do:
$ npm install node-connection-string-builder
var ConnectionStringBuilder = ;var sc = 'Data Source=.;User ID=foo;Password=bar;Initial Catalog=master;';console;console;console;console;scinitialCatalog = 'mydatabase';console;
. foo bar master Data Source=.;User ID=foo;Password=bar;Initial Catalog=mydatabase;
create new connection string builder, optionally populated with existing connection string properties
Add new property to connection string.
Remove property from connection string.
Remove all properties from connection string.
Returns value of the property in connection string.
Sets property in connection string to a particular value. If propery doesn't exists, it would be created.
Return true, if connection string contains property with specified key.
Gets or sets a string representation of the connection string properties.
keys (Array, readonly)
Returns collection of property names from connection string.
Helper properties allows you to manipulate the content of connection string.
Declares the application workload type when connecting to a database in an SQL Server Availability Group.
Gets or sets the name of the application associated with the connection string.
Gets or sets a Boolean value that indicates whether asynchronous processing is allowed by the connection created by using this connection string.
Gets or sets a string that contains the name of the primary data file. This includes the full path name of an attachable database.
Gets or sets the length of time (in seconds) to wait for a connection to the server before terminating the attempt and generating an error.
Gets or sets a value that indicates whether a client/server or in-process connection to SQL Server should be made.
Gets or sets the SQL Server Language record name.
Gets or sets the name or network address of the instance of SQL Server to connect to.
Gets or sets a Boolean value that indicates whether SQL Server uses SSL encryption for all data sent between the client and server if the server has a certificate installed.
Gets or sets a Boolean value that indicates whether the SQL Server connection pooler automatically enlists the connection in the creation thread's current transaction context.
Gets or sets the name or address of the partner server to connect to if the primary server is down.
Gets or sets the name of the database associated with the connection.
Gets or sets a Boolean value that indicates whether User ID and Password are specified in the connection (when false) or whether the current Windows account credentials are used for authentication (when true).
Gets or sets the minimum time, in seconds, for the connection to live in the connection pool before being destroyed.
Gets or sets the maximum number of connections allowed in the connection pool for this specific connection string.
Gets or sets the minimum number of connections allowed in the connection pool for this specific connection string.
When true, an application can maintain multiple active result sets (MARS). When false, an application must process or cancel all result sets from one batch before it can execute any other batch on that connection.For more information, see Multiple Active Result Sets (MARS).
If your application is connecting to an AlwaysOn availability group (AG) on different subnets, setting MultiSubnetFailover=true provides faster detection of and connection to the (currently) active server. For more information about SqlClient support for Always On Availability Groups, see SqlClient Support for High Availability, Disaster Recovery.
Gets or sets a string that contains the name of the network library used to establish a connection to the SQL Server.
Gets or sets the size in bytes of the network packets used to communicate with an instance of SQL Server.
Gets or sets the password for the SQL Server account.
Gets or sets a Boolean value that indicates whether the connection will be pooled or explicitly opened every time that the connection is requested.
Gets or sets a Boolean value that indicates whether replication is supported using the connection.
Gets or sets a string value that indicates how the connection maintains its association with an enlisted System.Transactions transaction.
Gets or sets a value that indicates whether the channel will be encrypted while bypassing walking the certificate chain to validate trust.
Gets or sets a string value that indicates the type system the application expects.
Gets or sets the user ID to be used when connecting to SQL Server.
Gets or sets a value that indicates whether to redirect the connection from the default SQL Server Express instance to a runtime-initiated instance running under the account of the caller.
Gets or sets the name of the workstation connecting to SQL Server.