Exposed
Exposed copied to clipboard
Feature request: Support adding triggers
Would be pretty good if we had a way to register SQL triggers within Kotlin. Is this feasible @Tapac? Or is there some other way that you recommend?
Not yet as different dialects have their own trigger declaration syntax. Moreover, it's not obvious how to handle triggers modifications and verifications.
+1 for this feature.
@Tapac could you please provide best practice example of how you would currently implement a trigger with raw sql or any other functionality (SchemaUtils option?)
+1 for this feature.
+1 for this feature.
+1
+1 for this feature.
+2
++
+1 for this feature.
@Tapac could you please provide best practice example of how you would currently implement a trigger with raw sql or any other functionality (SchemaUtils option?)
@mairs8 Please check testDatabaseGeneratedValues in EntityTests.kt to see how to do that.