Skip to content

Instantly share code, notes, and snippets.

@felixge
Forked from devinus/gist:318882
Created March 1, 2010 22:22
Show Gist options
  • Save felixge/318885 to your computer and use it in GitHub Desktop.
Save felixge/318885 to your computer and use it in GitHub Desktop.
Connection.prototype.query = function (sql, cb) {
if (!this._queries) this._queries = [];
cb.sql = sql;
this._queries.push(cb);
this.maybeDispatchQuery();
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment