Skip to main content
Module

x/cotton/deps.ts>MysqlClientConfig

SQL Database Toolkit for Deno
Latest
interface MysqlClientConfig
import { type MysqlClientConfig } from "https://deno.land/x/cotton@v0.7.5/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