Skip to main content
Module

x/mysql/mod.ts>ClientConfig

MySQL driver for Deno
Extremely Popular
Go to Latest
interface ClientConfig
import { type ClientConfig } from "https://deno.land/x/mysql@v2.10.3/mod.ts";

Client Config

Properties

optional
hostname: string

Database hostname

optional
socketPath: string

Database UNIX domain socket path. When used, hostname and port are ignored.

optional
username: string

Database username

optional
password: string

Database password

optional
port: number

Database port

optional
db: string

Database name

optional
debug: boolean

Whether to display packet debugging information

optional
timeout: number

Connection read timeout (default: 30 seconds)

optional
poolSize: number

Connection pool size (default: 1)

optional
idleTimeout: number

Connection pool idle timeout in microseconds (default: 4 hours)

optional
charset: string

charset