orm.go
func (f *Field) SetRowAttrs(rowIDOrKey interface{}, attrs map[string]interface{}) *PQLBaseQuery {
	rowStr, err := formatIDKeyBool(rowIDOrKey)
	if err != nil {
		return NewPQLBaseQuery("", f.index, err)
	}
	attrsString, err := createAttributesString(attrs)
	if err != nil {
		return NewPQLBaseQuery("", f.index, err)
	}
	text := fmt.Sprintf("SetRowAttrs(%s,%s,%s)", f.name, rowStr, attrsString)
	q := NewPQLBaseQuery(text, f.index, nil)
	q.hasKeys = f.options.keys || f.index.options.keys
	return q
}
func (f *Field) SetRowAttrs(rowIDOrKey interface{}, attrs map[string]interface{}) *PQLBaseQuery {
	rowStr, err := formatIDKeyBool(rowIDOrKey)
	if err != nil {
		return NewPQLBaseQuery("", f.index, err)
	}
	attrsString, err := createAttributesString(attrs)
	if err != nil {
		return NewPQLBaseQuery("", f.index, err)
	}
	text := fmt.Sprintf("SetRowAttrs(%s,%s,%s)", f.name, rowStr, attrsString)
	q := NewPQLBaseQuery(text, f.index, nil)
	q.hasKeys = f.options.keys || f.index.options.keys
	return q
}
func ( f * Field ) SetRowAttrs ( rowIDOrKey interface { } , attrs map [ string ] interface { } ) * PQLBaseQuery { rowStr , err := formatIDKeyBool ( rowIDOrKey ) if err != nil { return NewPQLBaseQuery ( " " , f . index , err ) } attrsString , err := createAttributesString ( attrs ) if err != nil { return NewPQLBaseQuery ( " " , f . index , err ) } text := fmt . Sprintf ( " " , f . name , rowStr , attrsString ) q := NewPQLBaseQuery ( text , f . index , nil ) q . hasKeys = f . options . keys || f . index . options . keys return q }
// SetRowAttrs creates a SetRowAttrs query.
// SetRowAttrs associates arbitrary key/value pairs with a row in a field.
// Following types are accepted: integer, float, string and boolean types.
SetRowAttrs creates a SetRowAttrs query . SetRowAttrs associates arbitrary key / value pairs with a row in a field . Following types are accepted : integer float string and boolean types .