Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: CI

on:
push:
pull_request:

permissions:
contents: read

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.27.x'
cache: false
- run: go build ./...
- run: make -B sql.go
- run: git diff --exit-code -- sql.go
- run: go vet ./...
- run: go test -count=1 ./...
17 changes: 0 additions & 17 deletions .travis.yml

This file was deleted.

3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@
# limitations under the License.

MAKEFLAGS = -s
GOYACC = go run golang.org/x/tools/cmd/[email protected]

sql.go: sql.y
goyacc -o sql.go sql.y
$(GOYACC) -o sql.go sql.y
gofmt -w sql.go

clean:
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

Go package for parsing SQLite or SQL-92 queries.

The module builds with Go 1.11 and later. Regenerating `sql.go` with
`make -B sql.go` requires Go 1.17 or later for versioned `go run` support.
The Makefile pins the generator that reproduces the committed parser byte
for byte.

## Notice

The backbone of this repo is extracted from [vitessio/vitess](https://github.com/vitessio/vitess).
Expand Down
3 changes: 3 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module github.com/CovenantSQL/sqlparser

go 1.11
Loading