Is it possible to add aditional SQL statements that are executed "as are" at the end of the generated SQL Script?

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

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

@huydo862003 đang làm issue này rồi.

Từ ngày 6/11/2025.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

enhancement

Greetings, I would like to start this issue saying thanks for such amazing tool that has helped me for more than a couple of years at this point.

The title of my issue might be confusing but I hope to clarify it with the following use case:
I am in need of declaring a complex ((or maybe not so much)) index definition, something like this CREATE UNIQUE INDEX ON "auth"."users" (is_root) WHERE is_root = true.
So far I haven´t been able to find any way of declaring such thing using DBML, so I the only option left is to modify the generated script, which is not optimum.

Is it there any way of declaring SQL statements that are executed at the end of the generated SQL Script, "as are"?.
I'm concerned that such thing would hurt the ability to export to other databases but It would be a nice opt-in feature.

Thanks for reading.

Ngôn ngữ chính
JavaScript
Star
3.7k
Fork
233
Merge trung bình
2 ngày 4 giờ
Pull request đã merge (30 ngày)
23

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

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 holistics/dbml

Tất cả issue của holistics/dbml

Issue tương tự

Thêm issue về JavaScript

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.