Added GoLow() to high level schema proxy.

Travis Newhouse pointed out that there is no way to get to the low level proxy, from the high level one!
This commit is contained in:
Dave Shanley
2022-10-26 06:53:09 -04:00
parent 54316b4a00
commit 4a2d80b9c5

View File

@@ -67,3 +67,8 @@ func (sp *SchemaProxy) Schema() *Schema {
func (sp *SchemaProxy) GetBuildError() error {
return sp.buildError
}
// GoLow returns the low-level SchemaProxy that was used to create the high-level one.
func (sp *SchemaProxy) GoLow() *low.NodeReference[*base.SchemaProxy] {
return sp.schema
}