Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Vladimir Barsukov
zdb
Commits
4a280852
Commit
4a280852
authored
May 21, 2023
by
Vladimir Barsukov
Browse files
add IsEmpty
parent
fd14b971
Changes
1
Hide whitespace changes
Inline
Side-by-side
misc.go
View file @
4a280852
package
zdb
package
zdb
import
(
import
(
"errors"
"github.com/jackc/pgx/v5"
"github.com/jackc/pgx/v5"
"strings"
"strings"
)
)
var
ErrNoRows
=
pgx
.
ErrNoRows
var
ErrNoRows
=
pgx
.
ErrNoRows
func
IsEmpty
(
err
error
)
bool
{
return
errors
.
Is
(
err
,
ErrNoRows
)
}
type
Opts
interface
{
type
Opts
interface
{
Opts
()
(
sql
string
,
args
map
[
string
]
any
)
Opts
()
(
sql
string
,
args
map
[
string
]
any
)
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment