File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed
Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 2727 @golangci-lint fmt
2828 @uvx -q sqlfluff fix -q \
2929 --disable-progress-bar \
30- --config=internal/database /postgres/sql/.sqlfluff.toml \
31- internal/database /postgres/sql/queries
30+ --config=internal/server /postgres/sql/.sqlfluff.toml \
31+ internal/server /postgres/sql/queries
3232
3333.PHONY : bench
3434bench :
@@ -49,7 +49,7 @@ doctor:
4949gen.db :
5050 @go install github.com/sqlc-dev/sqlc/cmd/sqlc@v1.30.0
5151 @echo " Generating internal database code..."
52- @sqlc generate --file internal/database /postgres/.sqlc.yaml
52+ @sqlc generate --file internal/server /postgres/.sqlc.yaml
5353 @echo " * Success."
5454
5555.PHONY : gen.proto.go
143143
144144.PHONY : run.db # Run an instance of Postgres with the required extensions
145145run.db :
146- docker build -f internal/database /postgres/infra/Containerfile internal/database /postgres/infra -t data-platform-pgdb:local
146+ docker build -f internal/server /postgres/infra/Containerfile internal/server /postgres/infra -t data-platform-pgdb:local
147147 docker run --rm -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=postgres -e POSTGRES_DB=postgres -p " 5400:5432" data-platform-pgdb:local
148148
149149.PHONY : run.client # Run a GRPC client to inspect the API
Original file line number Diff line number Diff line change @@ -16,10 +16,10 @@ import (
1616 "google.golang.org/grpc/health/grpc_health_v1"
1717 "google.golang.org/grpc/reflection"
1818
19- dbdy "github.com/openclimatefix/data-platform/internal/server/dummy"
20- dbpg "github.com/openclimatefix/data-platform/internal/server/postgres"
2119 pb "github.com/openclimatefix/data-platform/internal/gen/ocf/dp"
2220 ix "github.com/openclimatefix/data-platform/internal/interceptors"
21+ dbdy "github.com/openclimatefix/data-platform/internal/server/dummy"
22+ dbpg "github.com/openclimatefix/data-platform/internal/server/postgres"
2323)
2424
2525func main () {
Original file line number Diff line number Diff line change @@ -18,9 +18,9 @@ import (
1818 "google.golang.org/grpc/status"
1919 "google.golang.org/protobuf/types/known/timestamppb"
2020
21- db "github.com/openclimatefix/data-platform/internal/server/postgres/gen"
2221 pb "github.com/openclimatefix/data-platform/internal/gen/ocf/dp"
2322 ix "github.com/openclimatefix/data-platform/internal/interceptors"
23+ db "github.com/openclimatefix/data-platform/internal/server/postgres/gen"
2424)
2525
2626// --- Server Implementation ----------------------------------------------------------------------
Original file line number Diff line number Diff line change @@ -25,9 +25,9 @@ import (
2525 "google.golang.org/protobuf/types/known/structpb"
2626 "google.golang.org/protobuf/types/known/timestamppb"
2727
28- db "github.com/openclimatefix/data-platform/internal/server/postgres/gen"
2928 pb "github.com/openclimatefix/data-platform/internal/gen/ocf/dp"
3029 ix "github.com/openclimatefix/data-platform/internal/interceptors"
30+ db "github.com/openclimatefix/data-platform/internal/server/postgres/gen"
3131)
3232
3333// --- Reuseable Functions for Route Logic -------------------------------------------------------
You can’t perform that action at this time.
0 commit comments