Skip to content

Commit d041160

Browse files
committed
Extract SQL autocompletion to separate module
1 parent efa45cc commit d041160

13 files changed

Lines changed: 5653 additions & 0 deletions

.gitignore

Lines changed: 177 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,177 @@
1+
.antlr
2+
3+
## Node: https://raw.githubusercontent.com/github/gitignore/master/Node.gitignore
4+
5+
# Logs
6+
logs
7+
*.log
8+
npm-debug.log*
9+
yarn-debug.log*
10+
yarn-error.log*
11+
lerna-debug.log*
12+
13+
# Diagnostic reports (https://nodejs.org/api/report.html)
14+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
15+
16+
# Runtime data
17+
pids
18+
*.pid
19+
*.seed
20+
*.pid.lock
21+
22+
# Directory for instrumented libs generated by jscoverage/JSCover
23+
lib-cov
24+
25+
# Coverage directory used by tools like istanbul
26+
coverage
27+
*.lcov
28+
29+
# nyc test coverage
30+
.nyc_output
31+
32+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
33+
.grunt
34+
35+
# Bower dependency directory (https://bower.io/)
36+
bower_components
37+
38+
# node-waf configuration
39+
.lock-wscript
40+
41+
# Compiled binary addons (https://nodejs.org/api/addons.html)
42+
build/Release
43+
44+
# Dependency directories
45+
node_modules/
46+
jspm_packages/
47+
48+
# Snowpack dependency directory (https://snowpack.dev/)
49+
web_modules/
50+
51+
# TypeScript cache
52+
*.tsbuildinfo
53+
54+
# Optional npm cache directory
55+
.npm
56+
57+
# Optional eslint cache
58+
.eslintcache
59+
60+
# Microbundle cache
61+
.rpt2_cache/
62+
.rts2_cache_cjs/
63+
.rts2_cache_es/
64+
.rts2_cache_umd/
65+
66+
# Optional REPL history
67+
.node_repl_history
68+
69+
# Output of 'npm pack'
70+
*.tgz
71+
72+
# Yarn Integrity file
73+
.yarn-integrity
74+
75+
# dotenv environment variables file
76+
.env
77+
.env.test
78+
79+
# parcel-bundler cache (https://parceljs.org/)
80+
.cache
81+
.parcel-cache
82+
83+
# Next.js build output
84+
.next
85+
out
86+
87+
# Nuxt.js build / generate output
88+
.nuxt
89+
dist
90+
91+
# Gatsby files
92+
.cache/
93+
# Comment in the public line in if your project uses Gatsby and not Next.js
94+
# https://nextjs.org/blog/next-9-1#public-directory-support
95+
# public
96+
97+
# vuepress build output
98+
.vuepress/dist
99+
100+
# Serverless directories
101+
.serverless/
102+
103+
# FuseBox cache
104+
.fusebox/
105+
106+
# DynamoDB Local files
107+
.dynamodb/
108+
109+
# TernJS port file
110+
.tern-port
111+
112+
# Stores VSCode versions used for testing VSCode extensions
113+
.vscode-test
114+
115+
# yarn v2
116+
.yarn/cache
117+
.yarn/unplugged
118+
.yarn/build-state.yml
119+
.yarn/install-state.gz
120+
.pnp.*
121+
122+
## macOS: https://raw.githubusercontent.com/github/gitignore/master/Global/macOS.gitignore
123+
124+
# General
125+
.DS_Store
126+
.AppleDouble
127+
.LSOverride
128+
129+
# Icon must end with two \r
130+
Icon
131+
132+
133+
# Thumbnails
134+
._*
135+
136+
# Files that might appear in the root of a volume
137+
.DocumentRevisions-V100
138+
.fseventsd
139+
.Spotlight-V100
140+
.TemporaryItems
141+
.Trashes
142+
.VolumeIcon.icns
143+
.com.apple.timemachine.donotpresent
144+
145+
# Directories potentially created on remote AFP share
146+
.AppleDB
147+
.AppleDesktop
148+
Network Trash Folder
149+
Temporary Items
150+
.apdisk
151+
152+
## Windows: https://raw.githubusercontent.com/github/gitignore/master/Global/Windows.gitignore
153+
154+
# Windows thumbnail cache files
155+
Thumbs.db
156+
Thumbs.db:encryptable
157+
ehthumbs.db
158+
ehthumbs_vista.db
159+
160+
# Dump file
161+
*.stackdump
162+
163+
# Folder config file
164+
[Dd]esktop.ini
165+
166+
# Recycle Bin used on file shares
167+
$RECYCLE.BIN/
168+
169+
# Windows Installer files
170+
*.cab
171+
*.msi
172+
*.msix
173+
*.msm
174+
*.msp
175+
176+
# Windows shortcuts
177+
*.lnk

.npmignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
src/
2+
test/
3+
jest.config.js
4+
index.ts
5+
tsconfig.json

index.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
export { SQLDialect } from 'antlr4ts-sql';
2+
3+
export * from './src/SQLAutocomplete';
4+
5+
export * from './src/models/AutocompleteOption';
6+
export * from './src/models/AutocompleteOptionType';
7+
export * from './src/models/SimpleSQLTokenizer';

jest.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
module.exports = {
2+
preset: 'ts-jest',
3+
testEnvironment: 'node',
4+
};

0 commit comments

Comments
 (0)