Skip to content
Effect 4.0 is here. One ecosystem. Zero dependencies.

MysqlClient

9 exports Since v1.0.0 Source

Compiler

Signature

declare function makeCompiler(transform?: (_: string) => string): any

Constructors

Since v1.0.0

Signature

declare function make(options: MysqlClientConfig): Effect<MysqlClient, SqlError, any>

Layers

Since v1.0.0

Signature

declare function layer(config: MysqlClientConfig): Layer<any, any>

Signature

declare function layerConfig(config: Wrap<MysqlClientConfig>): Layer<any, any>

Models

MysqlClient

interface
Since v1.0.0

Signature

interface MysqlClient extends unknown {
readonly [TypeId]: typeof TypeId;
readonly config: MysqlClientConfig;
}
Since v1.0.0

Signature

interface MysqlClientConfig {
readonly connectionTTL?: any;
readonly database?: string;
readonly host?: string;
readonly maxConnections?: number;
readonly password?: Redacted<string>;
readonly poolConfig?: any;
readonly port?: number;
readonly spanAttributes?: Record<string, unknown>;
readonly transformQueryNames?: (str: string) => string;
readonly transformResultNames?: (str: string) => string;
readonly url?: Redacted<string>;
readonly username?: string;
}

Tags

Signature

declare const MysqlClient: any

Type Ids

Since v1.0.0

Signature

declare const TypeId: unique symbol
Since v1.0.0

Signature

type TypeId = typeof TypeId