MCPcopy Create free account
hub / github.com/Effect-TS/effect / makeConnection

Function makeConnection

packages/sql/pg/src/PgClient.ts:534–537  ·  view source on GitHub ↗
(
  connection: PgConnection.PgConnection,
  streamAcquirer?: Effect.Effect<PgConnection.PgConnection, SqlError, Scope.Scope> | undefined
)

Source from the content-addressed store, hash-verified

532 Effect.ignore(conn.executeUnprepared("ROLLBACK", [], undefined))
533
534const makeConnection = (
535 connection: PgConnection.PgConnection,
536 streamAcquirer?: Effect.Effect<PgConnection.PgConnection, SqlError, Scope.Scope> | undefined
537): Connection => new ConnectionImpl(connection, streamAcquirer)
538
539/**
540 * Provides both `PgClient` and `SqlClient` from an acquisition effect.

Callers 3

makeFunction · 0.85
makeClientFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected