deno fmt
This commit is contained in:
parent
71e8d26195
commit
e601c43197
|
@ -2,4 +2,4 @@ import SqliteWorker from './workers/sqlite.ts';
|
||||||
|
|
||||||
const sqliteWorker = new SqliteWorker('./data/db.sqlite3');
|
const sqliteWorker = new SqliteWorker('./data/db.sqlite3');
|
||||||
|
|
||||||
export { sqliteWorker };
|
export { sqliteWorker };
|
||||||
|
|
|
@ -9,7 +9,7 @@ type Msg =
|
||||||
| ['query', [string, unknown[]]];
|
| ['query', [string, unknown[]]];
|
||||||
|
|
||||||
function call([cmd, args]: Msg) {
|
function call([cmd, args]: Msg) {
|
||||||
switch(cmd) {
|
switch (cmd) {
|
||||||
case 'open':
|
case 'open':
|
||||||
return handleOpen(args[0]);
|
return handleOpen(args[0]);
|
||||||
case 'query':
|
case 'query':
|
||||||
|
@ -31,4 +31,4 @@ self.addEventListener('message', (event: MessageEvent<[string, Msg]>) => {
|
||||||
self.postMessage([id, result]);
|
self.postMessage([id, result]);
|
||||||
});
|
});
|
||||||
|
|
||||||
self.postMessage(['ready']);
|
self.postMessage(['ready']);
|
||||||
|
|
Loading…
Reference in New Issue