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

Function setOrg

packages/sql/pg/test/Client.integration.test.ts:804–804  ·  view source on GitHub ↗
(org: string)

Source from the content-addressed store, hash-verified

802 Effect.gen(function*() {
803 const sql = yield* PgClient.PgClient
804 const setOrg = (org: string) => sql`SELECT set_config('app.org', ${org}, true)`
805 const query = sql<{ readonly orgName: string }>`SELECT current_setting('app.org', true) AS org_name`
806
807 const [, rows] = yield* sql.batch([setOrg("acme"), query])

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected