Commit 00e2a7f9 authored by npedot's avatar npedot
Browse files

adds schema utility method for doubleinc constraints selector

parent e77d442c
......@@ -194,7 +194,15 @@ class Schema () {
}
fun doubleIncs(tableName:String): List<Constraint> {
return doubleIncs().filter { f -> f.source.table.equals(tableName) }
return doubleIncs().filter { f -> f.source.table.equals(tableName) || f.target.table.equals(tableName)}
}
fun multivalued(): List<Constraint> {
return constraints().filter { c -> c.type.equals(Constraint.TYPE.MULTIVALUED.name) }
}
fun multivalued(tableName:String): List<Constraint> {
return multivalued().filter { f -> f.source.table.equals(tableName) }
}
fun functionalLHS(tableName: String): Set<Column> {
......
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