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
Returns
string | null
Example
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
opts): string | null
BuildDSN builds a MySQL data source name (DSN) from the given options.
| Name | Type |
|---|---|
opts | 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);
Was this page helpful?