splitting query moved to web worker

This commit is contained in:
Jan Prochazka
2021-12-12 12:26:26 +01:00
parent 42d7166d2b
commit f016ece2af
5 changed files with 68 additions and 21 deletions

View File

@@ -0,0 +1,6 @@
import { splitQuery } from 'dbgate-query-splitter';
onmessage = e => {
const result = splitQuery(e.data.text, e.data.options);
postMessage(result);
};