Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
test local ci
test local ci
  • Loading branch information
Sola committed Aug 9, 2017
commit a881e5a5e58ca3f4a634ffc6b1a63962eb6be530
8 changes: 1 addition & 7 deletions coffee/worker.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,7 @@ if typeof importScripts is 'function' # Detect webworker context
postMessage
'id' : data['id']
'results': db.exec data['sql']
when 'run'
if db is null then createDb()
if not data['sql'] then throw 'run: Missing query string'
if not data['params'] then throw 'run: Missing params'
postMessage
'id' : data['id']
'results': db.run data['sql'], data['params']

when 'each'
if db is null then createDb()
callback = (row) -> postMessage
Expand Down