Toshihiko
    正在准备搜索索引...

    接口 MySQLAdapterOptions

    mysql2 Pool 选项和 Toshihiko Adapter 配置。

    interface MySQLAdapterOptions {
        cache?: CacheSource;
        database?: string;
        package?: string;
        password?: string;
        pool?: Pool;
        showSql?: MySQLShowSql;
        user?: string;
        username?: string;
    }

    层级

    • Omit<PoolOptions, "database" | "password" | "user">
      • MySQLAdapterOptions
    索引
    cache?: CacheSource

    Cache 实例或模块式 Cache 配置。

    database?: string

    数据库名;默认值为 toshihiko。

    package?: string

    为兼容性保留的驱动软件包名。

    password?: string

    MySQL 密码。

    pool?: Pool

    现有 mysql2 Pool。

    showSql?: MySQLShowSql

    SQL 日志行为。

    user?: string

    MySQL 用户名。

    username?: string

    兼容性别名:user。