blob: adeef7016202290aa2a7eddbb7b7343fddff4752 [file]
load("@io_bazel_rules_go//go:def.bzl", "go_library")
load("//bazel/go:go_test.bzl", "go_test")
go_library(
name = "sqlingestionstore",
srcs = ["sqlingestionstore.go"],
importpath = "go.skia.org/infra/golden/go/ingestion/sqlingestionstore",
visibility = ["//visibility:public"],
deps = [
"//go/skerr",
"//golden/go/ingestion",
"@com_github_hashicorp_golang_lru//:golang-lru",
"@com_github_jackc_pgx_v4//pgxpool",
],
)
go_test(
name = "sqlingestionstore_test",
srcs = ["sqlingestionstore_test.go"],
embed = [":sqlingestionstore"],
deps = [
"//golden/go/sql/schema",
"//golden/go/sql/sqltest",
"@com_github_stretchr_testify//assert",
"@com_github_stretchr_testify//require",
],
)