mirror of
https://github.com/ngrok/sqlmw.git
synced 2026-06-16 16:54:29 +00:00
21 lines
376 B
Go
Executable File
21 lines
376 B
Go
Executable File
package sqlmw
|
|
|
|
import (
|
|
"context"
|
|
"database/sql/driver"
|
|
)
|
|
|
|
type wrappedResult struct {
|
|
intr Interceptor
|
|
ctx context.Context
|
|
parent driver.Result
|
|
}
|
|
|
|
func (r wrappedResult) LastInsertId() (id int64, err error) {
|
|
return r.intr.ResultLastInsertId(r.parent)
|
|
}
|
|
|
|
func (r wrappedResult) RowsAffected() (num int64, err error) {
|
|
return r.intr.ResultRowsAffected(r.parent)
|
|
}
|