Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

void/db: support Drizzle's casing option

Đang mở
#466 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
75/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
postgresql, typescript
Lĩnh vực
databases

Hướng nghiên cứu

Start with packages/void/src/plugin-drizzle.ts around the PostgreSQL client setup and packages/void/src/drizzle/config.ts where the drizzle-kit config is written. Trace how Drizzle options reach runtime queries and void db generate, then check existing tests for those paths. Done when both paths honor casing: 'snake_case' and use snake_case column names.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

What

void/db and void db generate ignore Drizzle's casing option, so a schema written for casing: 'snake_case' gets camelCase column names.

Drizzle's casing lets a schema declare createdAt: timestamp() and store it as created_at (Drizzle: camel and snake casing).
Void builds the PostgreSQL client with schema only (plugin-drizzle.ts), and the drizzle-kit config it writes has no casing (drizzle/config.ts).

Every table in our schema relies on snake_case casing against an existing database. To move to Void, we'd have to name every column by hand, or the column names would change.

Done when

A schema written for casing: 'snake_case' gets snake_case columns from both void db generate and runtime void/db queries.

Ngôn ngữ chính
TypeScript
Star
402
Fork
32
Merge trung bình
13 giờ 14 phút
Pull request đã merge (30 ngày)
73

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của voidzero-dev/void

Tất cả issue của voidzero-dev/void

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.