Skip to content
Snippets Groups Projects
Commit a5f54af8 authored by npedot's avatar npedot
Browse files

adds helper table method colByName

parent bf8771b6
No related branches found
No related tags found
No related merge requests found
......@@ -58,6 +58,10 @@ class Table (): Labelled {
return false
}
fun colByName(colName:String):Column? {
return columns?.filter { c-> c.name==colName }?.first()
}
infix fun id(id: String ) = apply {
this.id = id
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment