> debugEcho is showing you the table repr debugInfo shows different things when called in different places. When called at the end of the proc that returns the table, it prints the table properly. When called downstream on the called proc result, it prints the implementation details. So, even if it prints repr, because the reprs are different in two cases, that means that the things they represent are different.
> Write your own $ proc for type Table[string, SqlQuery] so that > >echo > tableSchemas2 > > gives you what you want. My goal is not to print the table or get it in a prettified string form. I need to access the table's values by key and iterate over values. I can't do that because the "table" I'm getting is not a Table really.