▸ BuildDSN(opts): string | null
opts
string
null
BuildDSN builds a MySQL data source name (DSN) from the given options.
MySQLOptions
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);
mysql.ts:14
Was this page helpful?