load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") go_library( name = "sql", srcs = [ "analytical.go", "sql.go", ], embedsrcs = ["schema.sql"], importpath = "edge-infra.dev/pkg/f8n/kinform/sql", visibility = ["//visibility:public"], deps = [ "//pkg/f8n/kinform/model", "//pkg/f8n/sovereign/model", "@com_github_google_uuid//:uuid", "@com_github_jackc_pgx_v4//stdlib", ], ) go_test( name = "sql_test", srcs = ["sql_test.go"], data = [ "//hack/tools:postgres.txz", ], embed = [":sql"], tags = ["needs-f2-refactor"], deps = [ "//pkg/f8n/kinform/model", "//pkg/f8n/sovereign/model", "//pkg/lib/build/bazel", "//pkg/lib/compression", "@com_github_fergusstrange_embedded_postgres//:embedded-postgres", "@com_github_google_uuid//:uuid", "@com_github_jackc_pgx_v4//stdlib", "@io_bazel_rules_go//go/runfiles:go_default_library", ], )