blob: 7fbd2e224b806b2f17f603996a3b9038fe158307 [file] [log] [blame]
Philipp Schraderc61f73b2022-02-23 23:58:37 -08001load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
2
3go_library(
4 name = "db",
5 srcs = ["db.go"],
6 importpath = "github.com/frc971/971-Robot-Code/scouting/db",
7 target_compatible_with = ["@platforms//cpu:x86_64"],
8 visibility = ["//visibility:public"],
Philipp Schrader7365d322022-03-06 16:40:08 -08009 deps = ["@com_github_jackc_pgx//stdlib"],
Philipp Schraderc61f73b2022-02-23 23:58:37 -080010)
11
12go_test(
13 name = "db_test",
Philipp Schrader7365d322022-03-06 16:40:08 -080014 size = "small",
Philipp Schraderc61f73b2022-02-23 23:58:37 -080015 srcs = ["db_test.go"],
Philipp Schrader7365d322022-03-06 16:40:08 -080016 data = [
17 "//scouting/db/testdb_server",
18 ],
Philipp Schraderc61f73b2022-02-23 23:58:37 -080019 embed = [":db"],
20 target_compatible_with = ["@platforms//cpu:x86_64"],
21)