Skip to content

Commit 061566b

Browse files
author
billcheng
committed
first commit
0 parents  commit 061566b

File tree

112 files changed

+47556
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

112 files changed

+47556
-0
lines changed

.DS_Store

10 KB
Binary file not shown.

Makefile

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Copyright 2019 The Vitess Authors.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
MAKEFLAGS = -s
16+
17+
sql.go: sql.y
18+
go run golang.org/x/tools/cmd/goyacc -o sql.go sql.y
19+
gofmt -w sql.go
20+
21+
clean:
22+
rm -f y.output sql.go

README.md

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# go-sql2struct
2+
3+
sqlparser
4+
5+
摘自 [https://github.com/vitessio/vitess](https://github.com/vitessio/vitess)
6+
7+
## Usage
8+
9+
import (
10+
"github.com/Bill-cc/go-sql2struct"
11+
)
12+
13+
## example
14+
15+
[parse_test.go](parse_test.go)
16+
17+
[parse_next_test.go](parse_next_test.go)
18+
...

0 commit comments

Comments
 (0)