(config: KyselyConfig)
| 72 | * and using the native kysely driver |
| 73 | */ |
| 74 | export 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 | } |
nothing calls this directly
no test coverage detected