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

Abierto
#290 0 comentarios 1 reacción 1 asignado Ver en GitHub

Los mantenedores suelen responder en 1 día

@huydo862003 ya está trabajando en esto.

Desde el 6/11/2025.

Evaluación

Este issue todavía no se ha evaluado.

Descripción

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.

Lenguaje dominante
JavaScript
Estrellas
3.7k
Forks
233
Merge medio
2 d 4 h
PR fusionados (30 d)
23

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de holistics/dbml

Todos los issues de holistics/dbml

Issues similares

Más issues de JavaScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.