https://github.com/syucream/spar
Cloud Spanner DDL parser in Go
https://github.com/syucream/spar
goyacc parser spanner
Last synced: 9 months ago
JSON representation
Cloud Spanner DDL parser in Go
- Host: GitHub
- URL: https://github.com/syucream/spar
- Owner: syucream
- License: mit
- Created: 2018-07-24T13:55:24.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-01-27T16:15:35.000Z (about 7 years ago)
- Last Synced: 2025-03-31T13:28:36.677Z (10 months ago)
- Topics: goyacc, parser, spanner
- Language: Go
- Size: 85 KB
- Stars: 9
- Watchers: 2
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# spar
Cloud Spanner DDL parser in Go
## Usage
- Pass your Spanner DDL to `parser.Parse()` and get parsed statements.
- See detail on cmd/spck/spck.go
## subtool
`spck` is a Spanner DDL syntax checker. It parses and returns exit code 0 if no error.
```
$ go get -u github.com/syucream/spar/cmd/spck
$ spck ./examples/create_table.sql
```