Skip to content

Instantly share code, notes, and snippets.

@heapwolf
Created July 19, 2012 17:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save heapwolf/3145525 to your computer and use it in GitHub Desktop.
Save heapwolf/3145525 to your computer and use it in GitHub Desktop.
intro/nonblocking
function handleResult(result) {
console.log('I have results: ' + result);
}
database.query('SELECT * from ARTICLES WHERE ID=1', handleResult);
console.log('I have started the query');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment