load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") go_library( name = "sql", srcs = ["sql_error.go"], importpath = "edge-infra.dev/pkg/edge/api/apierror/sql", visibility = ["//visibility:public"], deps = [ "//pkg/edge/api/sql/utils", "@com_github_jackc_pgconn//:pgconn", "@com_github_jackc_pgx_v4//:pgx", "@com_github_lib_pq//:pq", ], ) go_test( name = "sql_test", srcs = ["sql_error_test.go"], embed = [":sql"], deps = [ "@com_github_jackc_pgconn//:pgconn", "@com_github_lib_pq//:pq", "@com_github_stretchr_testify//assert", ], )