Skip to content

Commit bb0fad1

Browse files
authored
refactor: standard naming (#278)
* refactor: rename flinksql to flink * refactor: rename pgsql to postgresql * refactor: rename trinosql to trino * refactor: replace all default exports with named export * refactor: rename basicParser to basicSQL * refactor: rename basic-parser-types to types * refactor: replace arrow func with plain func
1 parent a997211 commit bb0fad1

325 files changed

Lines changed: 33181 additions & 33222 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ options {
1111
}
1212

1313
@header {
14-
import SQLParserBase from '../SQLParserBase';
14+
import { SQLParserBase } from '../SQLParserBase';
1515
}
1616

1717
program

src/grammar/hive/HiveSqlParser.g4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ options
3232
}
3333

3434
@header {
35-
import SQLParserBase from '../SQLParserBase';
35+
import { SQLParserBase } from '../SQLParserBase';
3636
}
3737

3838
program

src/grammar/impala/ImpalaSqlParser.g4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ options
2626
}
2727

2828
@header {
29-
import SQLParserBase from '../SQLParserBase';
29+
import { SQLParserBase } from '../SQLParserBase';
3030
}
3131

3232
program

src/grammar/mysql/MySqlParser.g4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ options {
4040
}
4141

4242
@header {
43-
import SQLParserBase from '../SQLParserBase';
43+
import { SQLParserBase } from '../SQLParserBase';
4444
}
4545

4646
// Top Level Description

src/grammar/plsql/PlSqlLexer.g4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ options {
3535
caseInsensitive= true;
3636
}
3737
@lexer::header {
38-
import PlSqlBaseLexer from "./PlSqlBaseLexer";
38+
import { PlSqlBaseLexer } from "./PlSqlBaseLexer";
3939
}
4040

4141
ABORT : 'ABORT';

src/grammar/plsql/PlSqlParser.g4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ options {
3636
}
3737

3838
@parser::header {
39-
import PlSqlBaseParser from './PlSqlBaseParser';
39+
import { PlSqlBaseParser } from './PlSqlBaseParser';
4040
}
4141

4242
program
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
// $antlr-format singleLineOverrulesHangingColon true, alignLexerCommands true, alignLabels true, alignTrailers true
3535
// $antlr-format spaceBeforeAssignmentOperators false, groupedAlignments true
3636

37-
lexer grammar PostgreSQLLexer;
37+
lexer grammar PostgreSqlLexer;
3838

3939
options {
4040
caseInsensitive= true;

src/grammar/pgsql/PostgreSQLParser.g4 renamed to src/grammar/postgresql/PostgreSqlParser.g4

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,16 @@
3737
// $antlr-format allowShortRulesOnASingleLine false, allowShortBlocksOnASingleLine true, alignSemicolons hanging, alignColons hanging
3838
// $antlr-format spaceBeforeAssignmentOperators false, keepEmptyLinesAtTheStartOfBlocks true
3939

40-
parser grammar PostgreSQLParser;
40+
parser grammar PostgreSqlParser;
4141

4242
options {
43-
tokenVocab= PostgreSQLLexer;
43+
tokenVocab= PostgreSqlLexer;
4444
caseInsensitive= true;
4545
superClass=SQLParserBase;
4646
}
4747

4848
@header {
49-
import SQLParserBase from '../SQLParserBase';
49+
import { SQLParserBase } from '../SQLParserBase';
5050
}
5151

5252
program

src/grammar/spark/SparkSqlParser.g4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ options {
3131
}
3232

3333
@header {
34-
import SQLParserBase from '../SQLParserBase';
34+
import { SQLParserBase } from '../SQLParserBase';
3535
}
3636

3737
program

0 commit comments

Comments
 (0)