...
1load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
2
3go_library(
4 name = "sql",
5 srcs = [
6 "analytical.go",
7 "sql.go",
8 ],
9 embedsrcs = ["schema.sql"],
10 importpath = "edge-infra.dev/pkg/f8n/kinform/sql",
11 visibility = ["//visibility:public"],
12 deps = [
13 "//pkg/f8n/kinform/model",
14 "//pkg/f8n/sovereign/model",
15 "@com_github_google_uuid//:uuid",
16 "@com_github_jackc_pgx_v4//stdlib",
17 ],
18)
19
20go_test(
21 name = "sql_test",
22 srcs = ["sql_test.go"],
23 data = [
24 "//hack/tools:postgres.txz",
25 ],
26 embed = [":sql"],
27 tags = ["needs-f2-refactor"],
28 deps = [
29 "//pkg/f8n/kinform/model",
30 "//pkg/f8n/sovereign/model",
31 "//pkg/lib/build/bazel",
32 "//pkg/lib/compression",
33 "@com_github_fergusstrange_embedded_postgres//:embedded-postgres",
34 "@com_github_google_uuid//:uuid",
35 "@com_github_jackc_pgx_v4//stdlib",
36 "@io_bazel_rules_go//go/runfiles:go_default_library",
37 ],
38)
View as plain text