Skip to content

Commit a159f12

Browse files
committed
rework for better performance and flexibility
1 parent 835f677 commit a159f12

33 files changed

+8682
-1942
lines changed

doc.go

Lines changed: 0 additions & 34 deletions
This file was deleted.

errors.go

Lines changed: 0 additions & 93 deletions
This file was deleted.

go.mod

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
11
module github.com/mitranim/sqlb
22

3-
go 1.13
4-
5-
require (
6-
github.com/mitranim/refut v0.1.2
7-
github.com/mitranim/sqlp v0.1.4
8-
)
3+
go 1.17

go.sum

Lines changed: 0 additions & 4 deletions
This file was deleted.

main_test.go

Lines changed: 0 additions & 18 deletions
This file was deleted.

makefile

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
MAKEFLAGS := --silent --always-make
2+
TESTFLAGS := $(if $(filter $(verb), true), -v,) -count=1
3+
TEST := test $(TESTFLAGS) -run=$(run)
4+
BENCH := test $(TESTFLAGS) -run=- -bench=$(or $(run),.) -benchmem
5+
WATCH := watchexec -r -c -d=0 -n
6+
7+
test_w:
8+
gow -c -v $(TEST)
9+
10+
test:
11+
go $(TEST)
12+
13+
bench_w:
14+
gow -c -v $(BENCH)
15+
16+
bench:
17+
go $(BENCH)
18+
19+
lint_w:
20+
$(WATCH) -- $(MAKE) lint
21+
22+
lint:
23+
golangci-lint run
24+
echo [lint] ok

0 commit comments

Comments
 (0)