Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/syucream/spar
Cloud Spanner DDL parser in Go
https://github.com/syucream/spar
goyacc parser spanner
Last synced: 3 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 6 years ago)
- Default Branch: master
- Last Pushed: 2019-01-27T16:15:35.000Z (almost 6 years ago)
- Last Synced: 2024-10-04T17:49:35.043Z (3 months ago)
- Topics: goyacc, parser, spanner
- Language: Go
- Size: 85 KB
- Stars: 9
- Watchers: 3
- 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
```