Skip to content

Commit

Permalink
Update index.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
bobslavtriev authored Jun 6, 2024
1 parent 6509d31 commit 0290ef8
Showing 1 changed file with 33 additions and 16 deletions.
49 changes: 33 additions & 16 deletions src/Types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,23 +141,40 @@ export interface sqlConnection extends Connection {
}

export type MySQLConfig = {
session: string
host?: string
port?: number
database: string
tableName?: string
user?: string
password?: string
password1?: string
password2?: string
password3?: string
retryRequestDelayMs?: number
maxtRetries?: number
/* The hostname of the database you are connecting to. (Default: localhost) */
host?: string,
/* The port number to connect to. (Default: 3306) */
port?: number,
/* The MySQL user to authenticate as. (Default: root) */
user?: string,
/* The password of that MySQL user */
password: string,
/* Alias for the MySQL user password. Makes a bit more sense in a multifactor authentication setup (see "password2" and "password3") */
password1?: string,
/* 2nd factor authentication password. Mandatory when the authentication policy for the MySQL user account requires an additional authentication method that needs a password. */
password2?: string,
/* 3rd factor authentication password. Mandatory when the authentication policy for the MySQL user account requires two additional authentication methods and the last one needs a password. */
password3?: string,
/* Name of the database to use for this connection. (Default: base) */
database: string,
/* MySql table name. (Default: auth) */
tableName?: string,
/* Retry the query at each interval if it fails. (Default: 200ms) */
retryRequestDelayMs: number,
/* Maximum attempts if the query fails. (Default: 10) */
maxtRetries?: number,
/* Session name to identify the connection, allowing multisessions with mysql. */
session: string,
/* The source IP address to use for TCP connection. */
localAddress?: string,
/* The path to a unix domain socket to connect to. When used host and port are ignored. */
socketPath?: string,
/* Allow connecting to MySQL instances that ask for the old (insecure) authentication method. (Default: false) */
insecureAuth?: boolean,
/* If your connection is a server. (Default: false) */
isServer?: boolean,
/* Use the config SSL. (Default: disabled) */
ssl?: string | SslOptions
localAddress?: string
socketPath?: string
insecureAuth?: boolean
isServer?: boolean
}

export type valueReplacer = {
Expand Down

0 comments on commit 0290ef8

Please sign in to comment.