1 Star 0 Fork 0

holmescheng / mysql

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
result.go 600 Bytes
一键复制 编辑 原始数据 按行查看 历史
Julien Schmidt 提交于 2013-09-13 20:36 . Change License Header
// Go MySQL Driver - A MySQL-Driver for Go's database/sql package
//
// Copyright 2012 The Go-MySQL-Driver Authors. All rights reserved.
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this file,
// You can obtain one at http://mozilla.org/MPL/2.0/.
package mysql
type mysqlResult struct {
affectedRows int64
insertId int64
}
func (res *mysqlResult) LastInsertId() (int64, error) {
return res.insertId, nil
}
func (res *mysqlResult) RowsAffected() (int64, error) {
return res.affectedRows, nil
}
Go
1
https://gitee.com/holmescheng/mysql.git
git@gitee.com:holmescheng/mysql.git
holmescheng
mysql
mysql
v1.4.0

搜索帮助