Files
zeekay 3583e59e56 debrand: rename the CLI, docs and fixture content the server does not define
This repo was previously a module-path-only rebrand; the CLI, build and docs
still described the upstream project.

The binary is now sqlparser. Makefile's PKG_FILES sed still stripped the
UPSTREAM module prefix, so it matched nothing and left full import paths in the
coverage list. main.go dropped its vendor import alias, and the package no
longer shadows itself.

README described the upstream project end to end: its CI, coverage and report
card badges, its install path, and a brew formula we do not publish. Rewritten
for this fork, and its Go examples were compiled and run rather than hand
written.

Fixture content that is merely arbitrary — a greeting string literal and a
table name — was renamed, and the golden files REGENERATED with -update rather
than edited, because they encode character offsets that shift with the text.

Two classes of fixture content are deliberately left alone, and CI records why:
ReplicatedMergeTree '/clickhouse/tables/...' ZooKeeper paths are persisted
state (our own production server stores replicas under exactly that prefix),
and SOURCE(CLICKHOUSE(...)) is a keyword in the server's dictionary grammar
that this parser must accept. Renaming either would make the parser reject
real SQL.
2026-07-26 11:55:25 -07:00

25 lines
474 B
Makefile

PROGRAM=sqlparser
PKG_FILES=`go list ./... | sed -e 's=github.com/hanzo-ds/sqlparser/=./='`
CCCOLOR="\033[37;1m"
MAKECOLOR="\033[32;1m"
ENDCOLOR="\033[0m"
all: $(PROGRAM)
.PHONY: all
$(PROGRAM):
go build -o $(PROGRAM) main.go
test:
@go test -v ./... -covermode=atomic -coverprofile=coverage.out -race -compatible
update_test:
@go test -v ./... -update -race -compatible
lint:
@printf $(CCCOLOR)"GolangCI Lint...\n"$(ENDCOLOR)
@golangci-lint run --timeout 20m0s