func (r *RepositorySQL) GetByNamespace(namespace string, data gqttpl.TplEntityInterface) (sqlRowList []*SQLRow, err error) {
	defineResultList, err := gqttpl.ExecuteNamespaceTemplate(r.templates, namespace, data)
	if err != nil {
		return nil, err
	}
	sqlRowList = make([]*SQLRow, 0)
	for _, defineResult := range defineResultList {
		sqlRow, err := r.DefineResult2SQLRow(*defineResult)
		if err != nil {
			return nil, err
		}
		sqlRowList = append(sqlRowList, sqlRow)
	}
	return
}
// GetByNamespace get all template under namespace
GetByNamespace get all template under namespace
// GetByNamespace get all template under namespace
func (r *RepositorySQL) GetByNamespace(namespace string, data gqttpl.TplEntityInterface) (sqlRowList []*SQLRow, err error) {
	defineResultList, err := gqttpl.ExecuteNamespaceTemplate(r.templates, namespace, data)
	if err != nil {
		return nil, err
	}
	sqlRowList = make([]*SQLRow, 0)
	for _, defineResult := range defineResultList {
		sqlRow, err := r.DefineResult2SQLRow(*defineResult)
		if err != nil {
			return nil, err
		}
		sqlRowList = append(sqlRowList, sqlRow)
	}
	return
}
func ( r * RepositorySQL ) GetByNamespace ( namespace string , data gqttpl . TplEntityInterface ) ( sqlRowList [ ] * SQLRow , err error ) { defineResultList , err := gqttpl . ExecuteNamespaceTemplate ( r . templates , namespace , data ) if err != nil { return nil , err } sqlRowList = make ( [ ] * SQLRow , 0 ) for _ , defineResult := range defineResultList { sqlRow , err := r . DefineResult2SQLRow ( * defineResult ) if err != nil { return nil , err } sqlRowList = append ( sqlRowList , sqlRow ) } return }
GetByNamespace get all template under namespace
GetByNamespace get all template under namespace