Commit a7955794 authored by npedot's avatar npedot
Browse files

adds schema return method doubleIncs constraints

parent 162d9fb1
......@@ -193,6 +193,10 @@ class Schema () {
return constraints().filter { c -> c.type.equals(Constraint.TYPE.DOUBLE_INCLUSION.name) }
}
fun doubleIncs(tableName:String): List<Constraint> {
return doubleIncs().filter { f -> f.source.table.equals(tableName) }
}
fun functionalLHS(tableName: String): Set<Column> {
var resultCols = mutableSetOf<Column>()
val first = constraints().filter { c ->
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment