Skip to content

Instantly share code, notes, and snippets.

@dvv
Created May 25, 2010 19:25
Show Gist options
  • Save dvv/413569 to your computer and use it in GitHub Desktop.
Save dvv/413569 to your computer and use it in GitHub Desktop.
exports.Query = function(seed, params){
if (typeof seed === 'string')
return exports.parseQuery(seed, params);
var q = new Query();
if (seed && seed.name && seed.args)
q.name = seed.name, q.args = seed.args;
return q;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment