-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (17 loc) · 835 Bytes
/
Makefile
File metadata and controls
29 lines (17 loc) · 835 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
SHELL := /bin/bash
.PHONY: help mssql-up mssql-up-force mssql-down mssql-test mssql-insert-person
.DEFAULT_GOAL := help
help: ## Show available make targets
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
mssql-up: ## Start SQL Server and verify TestDB+CDC (preserves existing DB)
./scripts/mssql-init-safe.sh
./scripts/mssql-verify.sh
mssql-up-force: ## Start SQL Server, drop and recreate TestDB+CDC
./scripts/mssql-init.sh
./scripts/mssql-verify.sh
mssql-down: ## Stop and remove local SQL Server container
./scripts/mssql-stop.sh
mssql-test: ## Run the configured DStream MSSQL task
go run . run mssql-test --log-level debug
mssql-insert-person: ## Insert one random row into dbo.Persons
./scripts/mssql-insert-person.sh