Skip to content

Support casing drizzle config #701

@Yizack

Description

@Yizack

Hello,

First, congrats on 0.10.0!

I have some projects relying on casing: 'snake_case' configuration option from drizzle I now can't find a way to do this. Is there any workaround or plan to implement this config option?

Example code before 0.10.0:

import { drizzle } from "drizzle-orm/d1";
import * as schema from "../database/schema";

export const useDB = () => {
  return drizzle(hubDatabase(), { schema, casing: 'snake_case' })
};

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions