Modules
Mysql
Namespace: mysql
Table of contents
Classes
Interfaces
Functions
Functions
BuildDSN
▸ BuildDSN(opts
): string
| null
BuildDSN builds a MySQL data source name (DSN) from the given options.
Parameters
Name | Type |
---|---|
opts | MySQLOptions |
Returns
string
| null
Example
const mysql = require('nuclei/mysql');
const options = new mysql.MySQLOptions();
options.Host = 'acme.com';
options.Port = 3306;
const dsn = mysql.BuildDSN(options);
Defined in
mysql.ts:14