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

x/oak_nest/modules/mysql/mod.ts>ClientConfig

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