mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-15 09:43:01 -06:00
bump ncruces/go-sqlite3 to v0.20.2 (#3524)
This commit is contained in:
parent
b84637801a
commit
45e1609377
27 changed files with 963 additions and 311 deletions
10
vendor/github.com/ncruces/go-sqlite3/error.go
generated
vendored
10
vendor/github.com/ncruces/go-sqlite3/error.go
generated
vendored
|
|
@ -106,6 +106,11 @@ func (e ErrorCode) Temporary() bool {
|
|||
return e == BUSY
|
||||
}
|
||||
|
||||
// ExtendedCode returns the extended error code for this error.
|
||||
func (e ErrorCode) ExtendedCode() ExtendedErrorCode {
|
||||
return ExtendedErrorCode(e)
|
||||
}
|
||||
|
||||
// Error implements the error interface.
|
||||
func (e ExtendedErrorCode) Error() string {
|
||||
return util.ErrorCodeString(uint32(e))
|
||||
|
|
@ -136,6 +141,11 @@ func (e ExtendedErrorCode) Timeout() bool {
|
|||
return e == BUSY_TIMEOUT
|
||||
}
|
||||
|
||||
// Code returns the primary error code for this error.
|
||||
func (e ExtendedErrorCode) Code() ErrorCode {
|
||||
return ErrorCode(e)
|
||||
}
|
||||
|
||||
func errorCode(err error, def ErrorCode) (msg string, code uint32) {
|
||||
switch code := err.(type) {
|
||||
case nil:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue