Feat/trino sql (#188)
* refactor: prefix trino lexer rule name with KW_ * test: add commentOtherLine function * feat: optimize trino antlr grammar to adapt to c3 * feat: trinosqlParser supports codeCompletion and spliting * test: trinoSql codeCompletion unit tests
This commit is contained in:
@ -0,0 +1,19 @@
|
||||
INSERT INTO db.tb ;
|
||||
|
||||
SELECT ids FROM db.;
|
||||
|
||||
CREATE TABLE db. VALUES;
|
||||
|
||||
DROP TABLE IF EXISTS db.a;
|
||||
|
||||
CREATE OR REPLACE VIEW db.v;
|
||||
|
||||
DROP VIEW db.v ;
|
||||
|
||||
SELECT name, calculate_age(birthday) AS age FROM students;
|
||||
|
||||
CREATE SCHEMA db ;
|
||||
|
||||
DROP SCHEMA IF EXISTS sch;
|
||||
|
||||
SHOW COLUMNS FROM tb ;
|
13
test/parser/trinosql/suggestion/fixtures/tokenSuggestion.sql
Normal file
13
test/parser/trinosql/suggestion/fixtures/tokenSuggestion.sql
Normal file
@ -0,0 +1,13 @@
|
||||
ALTER ;
|
||||
|
||||
CREATE ;
|
||||
|
||||
DEALLOCATE ;
|
||||
|
||||
DELETE ;
|
||||
|
||||
DESCRIBE ;
|
||||
|
||||
DROP ;
|
||||
|
||||
INSERT ;
|
Reference in New Issue
Block a user