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

Aperta
#290 0 commenti 1 reazione 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@huydo862003 ci sta già lavorando.

Dal 6/11/2025.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

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.

Lingua principale
JavaScript
Stelle
3.7k
Fork
233
Merge medio
2g 4h
PR unite (30g)
23

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di holistics/dbml

Tutte le issue di holistics/dbml

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.