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

Function makeWithExecute

packages/sql-kysely/src/internal/kysely.ts:74–80  ·  view source on GitHub ↗
(config: KyselyConfig)

Source from the content-addressed store, hash-verified

72 * and using the native kysely driver
73 */
74export const makeWithExecute = <DB>(config: KyselyConfig) => {
75 const db = new Kysely<DB>(config)
76 // SelectQueryBuilder is not exported from "kysely" so we patch the prototype from it's instance
77 const selectPrototype = Object.getPrototypeOf(db.selectFrom("" as any))
78 patch(selectPrototype)
79 return effectifyWithExecute(db)
80}

Callers

nothing calls this directly

Calls 2

effectifyWithExecuteFunction · 0.85
patchFunction · 0.70

Tested by

no test coverage detected