Files
isp-config-service/service/rqlite/db/result.go
T
2024-05-03 17:46:22 +03:00

24 lines
625 B
Go

package db
type Result struct {
LastInsertIdValue int64 `json:"last_insert_id"`
RowsAffectedValue int64 `json:"rows_affected"`
Types map[string]string `json:"types"`
Time float64 `json:"time"`
Rows any `json:"rows"`
Error string `json:"error"`
}
func (r Result) LastInsertId() (int64, error) {
return r.LastInsertIdValue, nil
}
func (r Result) RowsAffected() (int64, error) {
return r.RowsAffectedValue, nil
}
type Response struct {
Results []*Result `json:"results"`
Time float64 `json:"time"`
}