effect-io-ai

Package: @effect/sql-mysql2
Module: MysqlClient

MysqlClient.make

Creates a scoped MySQL client backed by a managed mysql2 pool, verifying connectivity and supporting streaming queries through mysql2 query streams.

Signature

declare const make: (options: MysqlClientConfig) => Effect.Effect<MysqlClient, SqlError, Scope | Reactivity.Reactivity>

Source

Since v4.0.0