b1f8ac453b
feat!: base template * first bit of templating * codeowners * linuxbased * restart * baseline project * add grpc api and basic integration test * startqueue * queueMsg * splitscripts * migrations * queueintegrationtest * gateway
14 lines
291 B
Go
14 lines
291 B
Go
package pgxmock
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/jackc/pgx/v5/pgconn"
|
|
)
|
|
|
|
// NewResult creates a new pgconn.CommandTag result
|
|
// for Exec based query mocks.
|
|
func NewResult(op string, rowsAffected int64) pgconn.CommandTag {
|
|
return pgconn.NewCommandTag(fmt.Sprintf("%s %d", op, rowsAffected))
|
|
}
|