Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
sbroad
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
core
sbroad
Commits
1d2deb40
Commit
1d2deb40
authored
10 months ago
by
Kurdakov Alexander
Committed by
Alexander Kurdakov
9 months ago
Browse files
Options
Downloads
Patches
Plain Diff
chore: remove redundant space from query.pest
parent
00148a64
No related branches found
No related tags found
1 merge request
!428
feat: tier support in sql
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
doc/sql/query.ebnf
+2
-2
2 additions, 2 deletions
doc/sql/query.ebnf
sbroad-core/src/frontend/sql/query.pest
+2
-2
2 additions, 2 deletions
sbroad-core/src/frontend/sql/query.pest
with
4 additions
and
4 deletions
doc/sql/query.ebnf
+
2
−
2
View file @
1d2deb40
...
...
@@ -59,7 +59,7 @@ literal ::= 'TRUE'
| decimal
| string
dml ::= (call | delete | insert | update)
dml ::= (call | delete | insert | update)
( 'OPTION' '('
(('VTABLE_MAX_ROWS' | 'SQL_VDBE_MAX_STEPS') '=' unsigned)
(',' (('VTABLE_MAX_ROWS' | 'SQL_VDBE_MAX_STEPS') '=' unsigned))*
...
...
@@ -143,7 +143,7 @@ create_procedure ::= 'CREATE' 'PROCEDURE' procedure '(' type (',' type)* ')'
create_role ::= 'CREATE' 'ROLE' role
create_table ::= 'CREATE' 'TABLE' table
'('
column type ('NOT'? 'NULL')? (',' column type ('NOT'? 'NULL')?)* ','
column type ('NOT'? 'NULL')? (',' column type ('NOT'? 'NULL')?)* ','
'PRIMARY KEY' '(' column (',' column)* ')'
')'
('USING' ('MEMTX' | 'VINYL'))?
...
...
This diff is collapsed.
Click to expand it.
sbroad-core/src/frontend/sql/query.pest
+
2
−
2
View file @
1d2deb40
...
...
@@ -97,7 +97,7 @@ DDL = _{ CreateTable | DropTable | CreateIndex | DropIndex | CreateProc | DropPr
CreateIndex = {
^"create" ~ Unique? ~ ^"index" ~ Identifier ~ ^"on" ~ Table
~ IndexType? ~ "(" ~ Parts ~ ")" ~ IndexOptions? ~ TimeoutOption?
~ IndexType? ~ "(" ~ Parts ~ ")" ~ IndexOptions? ~ TimeoutOption?
}
Unique = { ^"unique" }
IndexType = { ^"using" ~ (Tree | Hash | RTree | BitSet) }
...
...
@@ -115,7 +115,7 @@ DDL = _{ CreateTable | DropTable | CreateIndex | DropIndex | CreateProc | DropPr
RunCountPerLevel = { ^"run_count_per_level" ~ "=" ~Unsigned }
RunSizeRatio = { ^"run_size_ratio" ~ "=" ~ Decimal }
Dimension = { ^"dimension" ~ "=" ~ Unsigned }
Distance = { ^"distance" ~ "=" ~ (Euclid | Manhattan) }
Distance = { ^"distance" ~ "=" ~ (Euclid | Manhattan) }
Euclid = { ^"euclid" }
Manhattan = { ^"manhattan" }
Hint = { ^"hint" ~ "=" ~ (True | False) }
...
...
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