Files
HxClaw/go_modules/libsql-client-go/libsql/internal/http/shared/result.go

19 lines
303 B
Go
Raw Normal View History

package shared
type result struct {
id int64
changes int64
}
func NewResult(id, changes int64) *result {
return &result{id: id, changes: changes}
}
func (r *result) LastInsertId() (int64, error) {
return r.id, nil
}
func (r *result) RowsAffected() (int64, error) {
return r.changes, nil
}