-
Notifications
You must be signed in to change notification settings - Fork 591
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SQL] use inheritance to support different dialects #3046
Merged
Merged
Changes from 2 commits
Commits
Show all changes
281 commits
Select commit
Hold shift + click to select a range
666c89e
[SQL] initial support for Apache Cassandra
keith-hall 2227515
[SQL] reorganize syntax tests into subfolders
keith-hall daca95f
[SQL] fix pesky preserveIndent on comments preventing indentation tes…
keith-hall 2536946
[SQL] improve Cassandra syntax test coverage slightly
keith-hall 91b2f89
[SQL] misc TSQL improvements
keith-hall 245c748
[SQL] fix TSQL function calls where the function name is in square br…
keith-hall 696bc38
[SQL] fix TSQL "Optimize for" hints
keith-hall 82f6060
[SQL] scope TSQL index hints more precisely
keith-hall a527926
[SQL] fix T-SQL PIVOT/UNPIVOT without table alias
keith-hall ea42460
[SQL] tighten context for clarity
keith-hall e92279b
[SQL] scope partition keys in CQL, joins don't exist
keith-hall 9067ab5
[SQL] scope constraint names correctly in table definitions
keith-hall e9ffa2d
[SQL] scope references correctly, scope filegroups in TSQL
keith-hall c283637
[SQL] fix tmPreferences
jrappen 700f8f8
[SQL] split tests into separate ones for:
jrappen 7224d18
[SQL] minor syntax file readability improvements
jrappen ff347d1
[SQL] rename syntax test file
jrappen 076427b
[SQL] clean up symbols tests
jrappen 0d66768
Merge pull request #10 from jrappen/sql
keith-hall 6e3c84c
[SQL] Support opening paren directly after TOP with no whitespace bet…
keith-hall adaaf66
[SQL] improvements to Cassandra syntax
keith-hall 488ee10
Apply suggestions from code review
keith-hall 73c8870
[SQL] improvements from code review
keith-hall caa1cb7
Apply suggestions from code review
keith-hall 6c4ffea
[SQL] tweak to Cassandra "select json" scope
keith-hall 0c3df74
[SQL] add meta_include_prototype false to name contexts
keith-hall 843f708
[SQL] make ignore case/word boundary order consistent
keith-hall 16e9e12
[SQL] make keyword.other.DML scope lowercase to match all other scopes
keith-hall 545ddcb
[SQL] Update Python MySQL syntax tests
keith-hall edb2e68
Merge branch 'master' into sql
keith-hall a305dc7
[SQL] Support MySQL temporary table creation
keith-hall 8940b18
[SQL] Improve Postgres syntax support
keith-hall ae58314
[SQL] move ddl-create-target-expect-as to base syntax
keith-hall a4754f4
[SQL] scope columns in a table creation context specifically
keith-hall bdd4b7e
[SQL] (WIP) refactor to support scoping of types only in a type context
keith-hall e246202
[SQL] Correctly scope types for variable declarations in Postgres syntax
keith-hall ee8a3f5
[SQL] fix Cassandra and TSQL syntax tests after context-specific type…
keith-hall 22a8677
[SQL] support included columns in TSQL indexes
keith-hall d3357e8
Merge pull request #11 from forkeith/more_sql
keith-hall ac08fc6
Merge remote-tracking branch 'sublimehq/master' into sql
keith-hall 5350f07
[SQL] fix Ruby syntax tests
keith-hall 9f56575
[SQL] resolve Postgres TODO comments from syntax test file
keith-hall 3c4eeaf
[SQL] only scope a leading asterisk in documentation block comments
keith-hall fdcbe5e
[SQL] Enable variable interpolations
deathaxe 478d1ac
Merge pull request #12 from deathaxe/sql
keith-hall 7e72cf5
[SQL] improve block comment handling
keith-hall 3470a3d
Merge remote-tracking branch 'sublimehq/master' into sql
keith-hall 454877f
[SQL] fixes after merge from master branch
keith-hall 67f8cb5
Apply suggestions from code review
keith-hall bc9e021
[SQL] fixes
keith-hall 0dfb869
Merge branch 'master' into sql
deathaxe 2ef35ee
[SQL] Update Embedded PHP SQL syntaxes
deathaxe 6f903b5
Merge pull request #13 from deathaxe/sql
keith-hall 5e130b9
[SQL] improve TSQL foreign key and temporal table support
keith-hall ee39f29
[SQL] Rename PostgresSQL to PostgreSQL
azizk a49f534
Merge pull request #14 from azizk/aziz/postgres
keith-hall c6d4ccc
[SQL] Added Postgres `.psql` file extension and renamed the test.
azizk c7ada36
[SQL] Change `postgresql` scope suffix to `psql`.
azizk 4c207bc
Merge pull request #15 from azizk/psql-contributions
keith-hall 29cb4a9
Merge remote-tracking branch 'sublimehq/master' into sql
keith-hall ad5e59f
[SQL] fix syntax tests
keith-hall aac3833
Merge remote-tracking branch 'sublimehq/master' into sql
keith-hall acfbeeb
[SQL] rename entity.name.function to entity.name.struct for table def…
keith-hall 5868db6
Merge branch 'master' into sql
deathaxe 511206a
[PHP] Fix interpolation
deathaxe 548752d
Merge pull request #16 from deathaxe/sql
keith-hall f586ddc
Remove unnecessary directives
deathaxe 7d7fe03
Reorg string-escapes
deathaxe 29320a9
Add meta.string
deathaxe ef8716b
Reorganize number/consant/string literals
deathaxe b4e0456
Add scope for decimal point
deathaxe 301bddf
TSQL: Scope hexadecimal base
deathaxe e8eee03
Reorganize inside-... contexts
deathaxe cf0bed6
[SQL] A few improvements
keith-hall 4ca8ec5
Rename inside-single-quoted-string context
deathaxe 9f10f81
Reorganize groups contexts
deathaxe 27a6a5f
Reorganize function-call contexts
deathaxe db1faa0
Reorganize case expression contexts
deathaxe e2de580
Reorganize alias expression contexts
deathaxe 3f82531
Reorganize collate expression contexts
deathaxe 998f7a1
Tweak case insenstive alterantion
deathaxe b941956
Reuse else-pop and immediately-pop
deathaxe a3b4290
Tweak declarations
deathaxe 86ac1c4
Refactor wildcard identifiers
deathaxe 6d68d53
Use more efficient lookahead to skip whitespace
deathaxe 6f32bbe
Refactor `cast` as builtin function-call
deathaxe e0c8b41
Reorganize TSQL table creation
deathaxe 02123eb
Remove unnecessary word boundary checks
deathaxe c25d4dd
Reorg prototypes
deathaxe f6965b9
Reorg comments
deathaxe ad6c269
Reorg identifiers
deathaxe c6e3dcd
Refactor/fix identifier boundaries
deathaxe db7dad4
Add support for interpolated identifiers
deathaxe 472603b
Reorganize reserved word bailout
deathaxe e73d683
Refactor table-name-or-subquery
deathaxe a6087e1
More expressive identifier patterns
deathaxe 7f11859
Simplify cte column list contexts
deathaxe b0a5c05
Reorganize operators
deathaxe f6f10ef
Reorganize literals (constants, numbers, strings, variables)
deathaxe 23708c7
Reorganize LIKE expressions
deathaxe bc14941
Reorganize types
deathaxe 1471890
Add expressions separator
deathaxe bc056c9
Reorganize statement contexts
deathaxe b23344c
Less restrictive whitespace
deathaxe 4c84c20
Fix cursor expressions
deathaxe ed8cb47
Refactor column modifiers
deathaxe 5597b02
Add meta scopes to arrays, dicts/sets
deathaxe 9c56e2e
Fix Cassandra collection types
deathaxe 9d539e1
Update main keys order
deathaxe ae27fa1
Tweak casing
deathaxe 49d6ad8
Refactor TABLESAMPLE contexts
deathaxe 26a1ea5
Lowercase keyword scopes
deathaxe 0607a8b
Remove duplicate pattern
deathaxe e4e0bc2
Add reusable comma and semicolon context
deathaxe 45a616d
Reorganize T-SQL "with" expressions
deathaxe 0711ff9
Reorganize T-SQL table-names-or-subquery
deathaxe 7ee6154
Tweak T-SQL cursor declaration
deathaxe 543c1eb
Refactor variables
deathaxe e6ee23f
Convert all case-insensitive patterns to lower-case
deathaxe 6d913dc
Fix T-SQL "alter" statement
deathaxe 9e4dbf3
Rename expressions-or-column-names to plural
deathaxe 0ed3589
Fix last computed column in group
deathaxe a58db1d
Fix on/off boolean scopes and create reusable contexts
deathaxe 286372c
Merge pull request #18 from deathaxe/sql
keith-hall 3e58cb8
[SQL] Small context name typo fix
keith-hall 0799802
Refactor column declaration lists
deathaxe 10e4c1e
Avoid including `main`.
deathaxe 4cc98a3
Merge pull request #19 from deathaxe/sql
keith-hall f8c096d
T-SQL: Add missing keywords
deathaxe 7006e54
Sort identifier contexts alphabetically
deathaxe 3ea6eb0
Cassandra: Reorganize partition key contexts
deathaxe 5369bbb
Refactor ddl statements
deathaxe 969fcd1
P-SQL: Improve CREATE INDEX statements
deathaxe 4278b99
Cassandra rename type scope
deathaxe 257cba7
Remove `ddl-` from context names
deathaxe 9476e36
Rename `target-as` to `target-options`
deathaxe ad140af
Rename statement meta scopes
deathaxe bb5d3e9
T-SQL: Remove duplicate index-name contexts
deathaxe 7f7daf6
MySQL: Add CREATE/ALTER/DROP USER statements
deathaxe a03ac2f
MySQL: Add GRANT statements
deathaxe d2dd962
MySQL: Fix account names
deathaxe cb17a71
MySQL: Add RENAME USER statements
deathaxe da874e9
MySQL: Add REVOKE statements
deathaxe df5be4c
MySQL: Add SET PASSWORD statements
deathaxe dae0ec0
MySQL: Add CREATE ROLE statements
deathaxe d7ab07f
MySQL: Add DROP ROLE statements
deathaxe 1d21f06
MySQL: Add SET ROLE statements
deathaxe d324986
MySQL: Add SHOW ROLE statements
deathaxe 5707b4f
MySQL: Add SHOW CREATE USER statements
deathaxe 6f9e8cb
MySQL: Refactor algorithm assignments
deathaxe 90096a5
MySQL: Reorganize test categories
deathaxe d9e2f22
MySQL: Reorganize column declaration expressions
deathaxe 5e3e28a
MySQL: Add CREATE DATABASE/SCHEMA statements
deathaxe 59641a2
MySQL: Add ALTER DATABASE/SCHEMA statements
deathaxe dd8a9bd
MySQL: Add DROP DATABASE/SCHEMA statements
deathaxe 4268bb6
MySQL: Add CREATE EVENT statements
deathaxe 866e570
MySQL: Add ALTER EVENT statements
deathaxe 3b02297
MySQL: Add DROP EVENT statements
deathaxe 3dce643
MySQL: Add SHOW CREATE EVENT statements
deathaxe e9341b0
MySQL: Refactor SHOW statements
deathaxe a13c93d
MySQL: Add CREATE FUNCTION/PROCEDURE statements
deathaxe ae8b1ce
MySQL: Reorganize DEFINER expressions
deathaxe ff5f685
MySQL: Fix typo
deathaxe b6960a6
NySQL: Reorganize comments
deathaxe 9e4e60c
MySQL: Reuse `interval` in user creations
deathaxe 59c0d87
MySQL: Add some BNF comments
deathaxe 3ac3b2d
MySQL: Add CREATE PROCEDURE tests
deathaxe 253037d
MySQL: Add CREATE FUNCTION UDF statements
deathaxe 412bf15
SQL: Common scheme of DDL statement arguments
deathaxe 0fdce03
MySQL: Add CREATE/DROP INDEX statements
deathaxe 5fe0636
MySQL: Improve CREATE TABLE statements
deathaxe f7cd539
Merge branch 'master' into mysql
keith-hall dab0197
[SQL] PHP fixes
keith-hall f88d5a8
Merge branch 'master' into mysql
keith-hall 9b67bd8
[SQL] more improvements
keith-hall ebca675
[SQL] support GRANT UPDATE permission TO user
keith-hall b26f93d
[SQL] support clustered index creation
keith-hall 33c5a06
[SQL] support GRANT SELECT permission ON schema TO user
keith-hall 1fef6f9
[SQL] fix Golang SQL embedding
keith-hall 990b166
[SQL] support GRANT INSERT permissions
keith-hall fb8ef15
Merge remote-tracking branch 'sublimehq/master' into sql
keith-hall 733265f
[SQL] manually make the wildcard scope adjustments after merge from m…
keith-hall d67c718
[SQL] more manual wildcard scope adjustments
keith-hall a99b7ea
fix after merge from master reintroduced syntax test file which was m…
keith-hall edb2cc7
[SQL] improve postgresql syntax slightly
keith-hall dc1185a
[SQL] Move user identifier to SQL (Basic)
deathaxe 128b16f
[SQL] Add variable for builtin scalar functions
deathaxe fce8721
[SQL] Reorganize grant/revoke statements & expressions
deathaxe a1337d7
[SQL] merge MySQL and T-SQL user privileges
deathaxe c92f79a
[SQL] fix ALL PRIVILEGES
deathaxe 5628ec1
[SQL] Add missing class types
deathaxe 436ba5a
[SQL] Add generic class type
deathaxe aeb3ce6
[SQL] Restrict user@host to MySQL
deathaxe 42b187c
[SQL] additional fixes for TSQL
keith-hall 649b960
[SQL] use tabs for indentation in tmPreferences files
keith-hall 02161ef
[SQL] update URL in Cassandra syntax comment
keith-hall 7e834cd
[SQL] PostgreSQL improvements
keith-hall 59d96d8
[SQL] improve scoping of escapes inside bytea strings in PostgreSQL
keith-hall 880068a
[SQL] support CREATE SEQUENCE in TSQL
keith-hall 8073d9d
[SQL] correctly scope TSQL table variable columns
keith-hall f7fffad
[SQL] correctly scope TSQL transaction isolation levels
keith-hall cf6f640
[SQL] improve scoping of function parameters in TSQL
keith-hall a107580
[SQL] move READONLY to after-type context in TSQL syntax
keith-hall bc5af53
[SQL] add support for CREATE TYPE ... AS TABLE
keith-hall 272041d
[SQL] support grant view server state in TSQL
keith-hall 5b1f29d
[SQL] support GRANT EXECUTE
keith-hall 5b2d73d
[SQL] better support for MERGE statements in TSQL
keith-hall 8d22bf3
[SQL] add support for DEFAULT when doing inserts
keith-hall 42ea97d
[SQL] support cross join
keith-hall b574398
[SQL] support deadlock_priority in TSQL
keith-hall cc2a871
[SQL] add support for TSQL `ALTER TABLE ... WITH CHECK` and temp tables
keith-hall 1f5edee
[Go] add support for TSQL in language injections
keith-hall d55ba7c
[SQL] fix some case-insensitive flags
deathaxe 071f96b
[SQL] Improve JOIN syntax
deathaxe 1cf5566
[SQL] Fix maybe-on-table-name
deathaxe 9176138
[SQL] Rename column-reference-list
deathaxe 2c29093
[SQL] Drop redundant pattern
deathaxe ec6fdc6
[SQL] Move stray brackets into separate contexts
deathaxe ae2f0da
[SQL] Globally match reserved/built-in types
deathaxe f04117c
[SQL] Add globally reserved words
deathaxe 245a439
[SQL] Simplify literal constants
deathaxe 3205950
[SQL] Add variables
deathaxe dcc2a93
[SQL] Add string literal tests
deathaxe d79bcbe
[SQL] Add ALTER TABLE support for MySQL
deathaxe ced5671
[SQL] Re-add accidentally dropped syntax tests
deathaxe d837ea3
[SQL] Add some drop user tests
deathaxe 9ab469d
[SQL] fix failing syntax test
keith-hall 6dcaafe
[SQL] reintroduce distinction between table aliases and column aliases
keith-hall 24583c3
[SQL] remove unnecessary include
keith-hall 6a0de68
[SQL] small tweak to keep using base syntax as much as possible
keith-hall c49b7f8
[SQL] Fix PHP interpolation
deathaxe 5d51874
Merge remote-tracking branch 'sublimehq/master' into sql
keith-hall a4bad73
[SQL] fix source.sql scope not being applied to DELETE statements in …
keith-hall 734d51d
[SQL] fix foreign key column name references and unique constraints
keith-hall b639a41
[SQL] fix ALTER TABLE ... ADD sequence TYPE not being scoped correctly
keith-hall 7477d3f
[SQL] fix DROP USER scoping of user names beginning with IF
keith-hall 88751b5
[SQL] fix TSQL MERGE WHEN expressions
keith-hall d7c0650
[SQL] apparently the maybe-merge-insert context was never really needed
keith-hall f05d8fa
Merge branch 'master' into sql
keith-hall a2205e9
[SQL] add some TSQL WITH XMLNAMESPACES examples/tests
keith-hall 827b729
Merge remote-tracking branch 'sublimehq/master' into sql
1c49ea3
[SQL] add boolean sub-scopes
e4923a6
Merge remote-tracking branch 'sublimehq/master' into sql
7abb7f4
[MySQL] scope built in variables, parameters and duplicate key behavior
ed66b5e
Merge branch 'master' into sql
b571b85
[MySQL] support LIKE expressions with # as an escape character
fd38f1e
[SQL] more improvements to MySQL syntax
2efa4a8
Merge remote-tracking branch 'sublimehq/master' into sql
1181c6d
Merge branch 'master' into sql
3e5c4ff
[JavaScript] fixes to JavaScript SQL embedding after merge from master
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is
DML
capitalized ? Relic of the old syntax ?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yup :)