FoxHound
The FoxHound javascript query generator, for node.js and the browser.
Do not use this yet. You've been warned.
Getting Started Quickly
$ npm install foxhound --save
Then...
var foxhound = require('foxhound');
var my_awesome_query = foxhound.scope('Users').cap(20).generate().query.body;
console.log(my_awesome_query);
The default query dialect is english, so, node should output:
Please give me 20 of your Users. Thank you!
This is not very useful for anything other than testing, so, we might want to change the dialect and try again:
var foxhound = require('foxhound');
var my_awesome_query = foxhound.scope('Users').cap(20).setDialect('MySQL').generate().query.body;
console.log(my_awesome_query);
Which now will output:
SELECT * FROM Users LIMIT 20;
Testing
$ npm test
$ npm run coverage
Functionality
Hi, it's Steven with FoxHound!
You’re going to be in a great mood all day, because you’re going be hounding your troubles away with the FoxHound.
Now, look here’s a potato. One hound you got big chunks for stew, two hounds home fries in a second. And, look at this when you add a mushroom: the more you do it, the finer it gets you don’t have to switch any blades.
Now, you love salad -- you hate making it. You know you hate making salads -- that’s why you don’t have any salad in your diet. Watch this one hound... salad! I love Pizza too, but once in a while get the veggies in, at least throw it on top of the pizza.
You’re going to change your eating habits. Soup, Coleslaw, stuff we want, 5 seconds. 4 or 5 seconds, it's done.
This thing, this tuna looks boring. Stop having a boring tuna, stop having a boring life. Add this tuna putting it in like this now you’re going to have a nice, tuna, salad. Look at this you’re going to have an exciting life now.
Look here’s a hard boiled egg. One chop, you add the pickle; you add the green onion. And what you can do is mix things together add the ham and you’re going to love this. You don’t have time to make breakfast, breakfast to go.
You’re going to love my nuts. Watch this: almonds, walnuts. Comes with a cover so you can do everything in the cover. Alright, or you can do it on the board, whatever you like. So easy, one finger, if I can do it with one finger you guys can do it with your whole hand. Kids can do it. You know what they charge at the ice cream store? A dollar for toppings at the ice cream store. Add a couple cookies if you want. So, you can make it for 10 cents. Stop throwing your money away. You know not only nuts what about fruit? Put a mango, look at that isn’t that beautiful on your ice cream.
Why make another query generation library?
The reason you’re going to hound away everyday is cause its so easy to clean. One. Two, and pops open like that like a butterfly. Now these other ones you see at the stores. Bacteria gets on the food, all the stores have this. You can’t clean it! You can’t open this up its worthless! Forget about it. Now take the FoxHound, put it back together, and you get the garlic. Now here’s the garlic, with the skin. There you go -- de-skins the garlic. You’re going to eat more garlic. The onions with the skin, alright this is making you cry making me cry. Alright life’s hard enough as it is. You don’t wanna cry anymore. Put the FoxHound right there, the skins at the bottom. And look at this you want a little bit of onions, you don’t wanna drag out the food processor. The skin, comes right off! You see that? Alright now you put a tomato in there. Add your cilantro, your hot peppers right there. You hit it like this. Guys we’re going to make America skinny again. One hound at a time!
User reactions to FoxHound
User 1
"It's very quick -- it's a time saver for recipes."
User 2
"Take apart, it washes, put it in the drawer. Good to go."
User 3
"It's easy, you just got one hand, and chop."
Dependencies
Now here’s the deal when you buy the FoxHound we’re going to give you the Graty for cheese. White cheese, yellow cheese -- in the container. Comes with a twister, watch this tacos, fettucini, linguine, martini, bikini. Look at that comes with two blades. Just bang it. Cheese comes right out. Fine 'n course, Parmesan. Comes with a cover, stays sealed. Put it in the fridge, take it out when you need it. Pass it around the table. You’re going to love this thing. The FoxHound sells for 19.95, but if you call now, within the next 20 minutes -- you know we can’t do this all day. You’re going to get the Graty absolutely free -- just pay processing. So that’s two for $19.95. The FoxHound with the Graty, now here’s how to order...