package pg

import (
	
	

	
	
)

// Result summarizes an executed SQL command.
type Result = orm.Result

// A result summarizes an executed SQL command.
type result struct {
	model orm.Model

	affected int
	returned int
}

var _ Result = (*result)(nil)

//nolint
func ( *result) ( []byte) error {
	.affected = -1

	 := bytes.LastIndexByte(, ' ')
	if  == -1 {
		return nil
	}

	 := internal.BytesToString([+1 : len()-1])

	,  := strconv.Atoi()
	if  == nil {
		.affected = 
	}

	return nil
}

func ( *result) () orm.Model {
	return .model
}

func ( *result) () int {
	return .affected
}

func ( *result) () int {
	return .returned
}