Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/deno_nest/modules/mysql/deps.ts>ClientConfig

Refer to nestjs to realize some common functions for Deno, support hono and oak
Go to Latest
interface ClientConfig
import { type ClientConfig } from "https://deno.land/x/deno_nest@v3.4.0/modules/mysql/deps.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