load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") go_library( name = "postgres", srcs = [ "client.go", "default_clientv4.go", "defaut_client.go", "options.go", ], importpath = "edge-infra.dev/pkg/lib/db/postgres", visibility = ["//visibility:public"], deps = [ "@com_github_go_logr_logr//:logr", "@com_github_jackc_pgconn//:pgconn", "@com_github_jackc_pgx_v4//:pgx", "@com_github_jackc_pgx_v4//pgxpool", "@com_github_jackc_pgx_v5//:pgx", "@com_github_jackc_pgx_v5//pgconn", "@com_github_jackc_pgx_v5//pgxpool", ], ) go_test( name = "postgres_test", srcs = ["options_test.go"], embed = [":postgres"], deps = ["@com_github_stretchr_testify//assert"], )