Skip to main content

接口: MySQLOptions

mysql.MySQLOptions MySQLOptions 定义了连接到 MySQL 数据库所需的数据源名称 (DSN) 选项, 以及其他选项,如 Timeout 等 示例
const mysql = require('nuclei/mysql');
const options = new mysql.MySQLOptions();
options.Host = 'acme.com';
options.Port = 3306;

目录

属性

属性

DbName

Optional DbName: string

定义于

mysql.ts:198

Host

Optional Host: string

定义于

mysql.ts:188

Password

Optional Password: string

定义于

mysql.ts:196

Port

Optional Port: number

定义于

mysql.ts:190

Protocol

Optional Protocol: string

定义于

mysql.ts:192

RawQuery

Optional RawQuery: string

定义于

mysql.ts:200

Timeout

Optional Timeout: number

定义于

mysql.ts:202

Username

Optional Username: string

定义于

mysql.ts:194