code: func ToUQL(e *dosa.EntityDefinition) (string, error) {
  	if err := e.EnsureValid(); err != nil {
  		return "", errors.Wrap(err, "EntityDefinition is invalid")
  	}
  
  	var buf bytes.Buffer
  	if err := tmpl.Execute(&buf, e); err != nil {
  		// shouldn't happen unless we have a bug in our code
  		return "", errors.Wrap(err, "failed to execute UQL template; this is most likely a DOSA bug")
  	}
  	return buf.String(), nil
  }
docs: // ToUQL translates an entity definition to UQL string of create table stmt.