...

Text file src/edge-infra.dev/pkg/lib/db/postgres/BUILD.bazel

Documentation: edge-infra.dev/pkg/lib/db/postgres

     1load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
     2
     3go_library(
     4    name = "postgres",
     5    srcs = [
     6        "client.go",
     7        "default_clientv4.go",
     8        "defaut_client.go",
     9        "options.go",
    10    ],
    11    importpath = "edge-infra.dev/pkg/lib/db/postgres",
    12    visibility = ["//visibility:public"],
    13    deps = [
    14        "@com_github_go_logr_logr//:logr",
    15        "@com_github_jackc_pgconn//:pgconn",
    16        "@com_github_jackc_pgx_v4//:pgx",
    17        "@com_github_jackc_pgx_v4//pgxpool",
    18        "@com_github_jackc_pgx_v5//:pgx",
    19        "@com_github_jackc_pgx_v5//pgconn",
    20        "@com_github_jackc_pgx_v5//pgxpool",
    21    ],
    22)
    23
    24go_test(
    25    name = "postgres_test",
    26    srcs = ["options_test.go"],
    27    embed = [":postgres"],
    28    deps = ["@com_github_stretchr_testify//assert"],
    29)

View as plain text