Effect CommunityEC
Effect Community2y ago
8 replies
Metevier

Trouble with CamelCasePlugin in sql-kysely/pg Setup

I am using sql-kysely/pg with the following setup:
export const PortalDBLive = Layer.effect(
  PortalDB,
  PgKysely.make<DB>({
    plugins: [new CamelCasePlugin()],
  }),
).pipe(Layer.provide(PortalPgLive))

And the CamelCasePlugin doesnt seem to doing anything. The columns are returned as snake case.
Outside of effect-kysely, the plugin properly processes the columns into camel case.

Has anyone ran into this before?
Was this page helpful?