This module specifies the interface of an internal MySQL server connection.
        
        
Members
- 
    <inner, readonly> IntegerType :string
- 
    
    Convert either all integers to a BigInt or to a string, or alternatively, convert only unsafe integers to a BigInt or to a string.Type:- string
 ExampleIntegerType.BIGINT IntegerType.STRING IntegerType.UNSAFE_BIGINT IntegerType.UNSAFE_BIGINT 
Type Definitions
- 
    Endpoint
- 
    
    MySQL server endpoint details.Type:- Object
 Properties:Name Type Argument Default Description hoststring <optional> 
 localhost hostname or IP (v4 or v6) of a MySQL server instance portnumber <optional> 
 33060 X Plugin port on the MySQL server instance prioritynumber <optional> 
 priority of an endpoint relative to the others (endpoints with higher priority are picked first) socketstring <optional> 
 relative or absolute path of a local Unix socket file 
- 
    Properties
- 
    
    Connection configuration properties.Type:- Object
 Properties:Name Type Argument Default Description authstring <optional> 
 name of the client-side authentication mechanism to use connectTimeoutnumber <optional> 
 10000 maximum ammount of time (ms) to wait for a server connection to be opened connectionAttributesObject <optional> 
 {} key-value object containing names and values of session attributes endpointsArray.<module:Connection~Endpoint> <optional> 
 [] list of endpoints to connect to hoststring <optional> 
 localhost hostname or IP (v4 or v6) of a MySQL server instance passwordstring <optional> 
 password for the MySQL account (defaults to '') portnumber <optional> 
 33060 X Plugin port on the MySQL server instance resolveSrvboolean <optional> 
 false enable or disable DNS SRV resolution schemastring <optional> 
 default database to connect to (defaults to '') socketstring <optional> 
 relative or absolute path of a local Unix socket file resolveSrvboolean <optional> 
 false use the host to perform a DNS SRV lookup and obtain the list of endpoints tlsmodule:Connection~TLS <optional> 
 TLS options userstring <optional> 
 user of the MySQL account (defaults to '') 
- 
    TLS
- 
    
    Connection TLS-specific properties.Type:- Object
 Properties:Name Type Argument Default Description enabledboolean <optional> 
 true enables or disables TLS castring <optional> 
 path of a file containing a certificate authority chain used to verify the server certificate crlstring <optional> 
 path of a file containing a certificate revocation list used, alongside a certificate authority, to verify the server certificate versionsArray.<string> <optional> 
 TLSv1.2, TLSv1.3 restrict the list of allowed TLS versions (TLSv1.2, TLSv1.3) ciphershuitesArray.<string> <optional> 
 list of ciphersuites to allow (IANA syntax)