- Wrapped all table operations in a new foreground job context, which mediates foreground tasks. - Added cancellation support and partial results for table read operations. - Added the "mark" command, which can mark, unmark & toggle marked items - Added support for alias arguments. - Removed the "unmark" command, and replaced it as an alias to the "marked" command - Fixed seg faults raised when there is no table shown in the result set.
24 lines
403 B
Go
24 lines
403 B
Go
package models
|
|
|
|
import (
|
|
"github.com/pkg/errors"
|
|
)
|
|
|
|
var ErrReadOnly = errors.New("in read-only mode")
|
|
|
|
type PartialResultsError struct {
|
|
err error
|
|
}
|
|
|
|
func NewPartialResultsError(err error) PartialResultsError {
|
|
return PartialResultsError{err: err}
|
|
}
|
|
|
|
func (pr PartialResultsError) Error() string {
|
|
return "partial results received"
|
|
}
|
|
|
|
func (pr PartialResultsError) Unwrap() error {
|
|
return pr.err
|
|
}
|