Skip to content

MysqlClient

9 exports Added in v1.0.0 Source

Compiler

makeCompiler

Added in v1.0.0 Source

Signature

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

Constructors

make

Added in v1.0.0 Source

Signature

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

Layers

layer

Added in v1.0.0 Source

Signature

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

layerConfig

Added in v1.0.0 Source

Signature

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

Models

MysqlClient interface

Added in v1.0.0 Source

Signature

interface MysqlClient extends unknown {
  readonly [TypeId]: typeof TypeId;
  readonly config: MysqlClientConfig;
}

MysqlClientConfig interface

Added in v1.0.0 Source

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

MysqlClient

Added in v1.0.0 Source

Signature

declare const MysqlClient: any;

Type Ids

TypeId

Added in v1.0.0 Source

Signature

declare const TypeId: unique symbol;

TypeId type

Added in v1.0.0 Source

Signature

type TypeId = typeof TypeId;