-
-
Notifications
You must be signed in to change notification settings - Fork 542
Open
Labels
bugSomething isn't workingSomething isn't working
Description
What version of Effect is running?
@effect/sql-kysely 0.33.1
What steps can reproduce the bug?
Create a kysely using @effect/sql-kysely/Pg.
import * as PgKysely from "@effect/sql-kysely/Pg"
import { CamelCasePlugin } from "kysely"
PgKysely.make<Schema.DB>({
plugins: [new CamelCasePlugin()],
})What is the expected behavior?
Query variables and results are transformed to camel case.
What do you see instead?
No transformation happens.
Additional information
Workaround is to use native kysely instead:
import * as SqlKysely from "@effect/sql-kysely/Kysely";
SqlKysely.make<Schema.DB>({
dialect: new PostgresDialect({
pool: new Pool(),
}),
plugins: [new CamelCasePlugin()],
})If it seems plugins can't be supported, should we just blacklist plugins as well from the make options as we do so for dialect?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working