blob: cc6d6ab69ff1199c3861b90b22463ffa97a7aa28 [file] [log] [blame]
load("//bazel/go:go_test.bzl", "go_test")
load("@io_bazel_rules_go//go:def.bzl", "go_library")
go_library(
name = "schema",
srcs = [
"sql.go",
"tables.go",
],
importpath = "go.skia.org/infra/golden/go/sql/schema",
visibility = ["//visibility:public"],
deps = [
"//go/paramtools",
"//go/skerr",
"@com_github_google_uuid//:uuid",
"@com_github_jackc_pgtype//:pgtype",
],
)
go_test(
name = "schema_test",
srcs = ["sql_test.go"],
embed = [":schema"],
deps = [
"//go/testutils/unittest",
"//golden/go/sql/sqltest",
"@com_github_stretchr_testify//require",
],
)