good morning!!!!
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
Pg3p
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Garet Halliday
Pg3p
Commits
fc11191b
Commit
fc11191b
authored
2 years ago
by
Garet Halliday
Browse files
Options
Downloads
Patches
Plain Diff
add vacuum keyword
parent
50efb116
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
codegen/lex/spec.yaml
+2
-0
2 additions, 0 deletions
codegen/lex/spec.yaml
lex/keywords.go
+1063
-1026
1063 additions, 1026 deletions
lex/keywords.go
lib_test.go
+8
-0
8 additions, 0 deletions
lib_test.go
with
1073 additions
and
1026 deletions
codegen/lex/spec.yaml
+
2
−
0
View file @
fc11191b
...
@@ -201,6 +201,8 @@ Keywords:
...
@@ -201,6 +201,8 @@ Keywords:
-
"
USER"
-
"
USER"
"
USING"
:
"
USING"
:
-
"
USING"
-
"
USING"
"
VACUUM"
:
-
"
VACUUM"
"
VARIADIC"
:
"
VARIADIC"
:
-
"
VARIADIC"
-
"
VARIADIC"
"
VERBOSE"
:
"
VERBOSE"
:
...
...
This diff is collapsed.
Click to expand it.
lex/keywords.go
+
1063
−
1026
View file @
fc11191b
This diff is collapsed.
Click to expand it.
lib_test.go
+
8
−
0
View file @
fc11191b
...
@@ -117,6 +117,8 @@ const TestQuery7 = `
...
@@ -117,6 +117,8 @@ const TestQuery7 = `
*/
*/
select concat('one');`
select concat('one');`
const
TestQuery8
=
`truncate table pgbench_accounts, pgbench_branches, pgbench_history, pgbench_tellers`
func
TestParser_Lex
(
t
*
testing
.
T
)
{
func
TestParser_Lex
(
t
*
testing
.
T
)
{
parser
:=
NewParser
()
parser
:=
NewParser
()
lexed
:=
parser
.
Lex
(
TestQuery1
)
lexed
:=
parser
.
Lex
(
TestQuery1
)
...
@@ -161,6 +163,12 @@ func TestParser_Lex7(t *testing.T) {
...
@@ -161,6 +163,12 @@ func TestParser_Lex7(t *testing.T) {
t
.
Errorf
(
"%#v"
,
lexed
)
t
.
Errorf
(
"%#v"
,
lexed
)
}
}
func
TestParser_Lex8
(
t
*
testing
.
T
)
{
parser
:=
NewParser
()
lexed
:=
parser
.
Lex
(
TestQuery8
)
t
.
Errorf
(
"%+v"
,
lexed
)
}
func
BenchmarkParser_Lex
(
b
*
testing
.
B
)
{
func
BenchmarkParser_Lex
(
b
*
testing
.
B
)
{
b
.
ReportAllocs
()
b
.
ReportAllocs
()
parser
:=
NewParser
()
parser
:=
NewParser
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment