Add the first implementation of the library
Allow the user to specify the callback for get/set
Add event emitter
Add a makefile that wraps node-waf

I'm way too used to type make to build software..
Increase the warning level from the compiler
Reformat code to make it uniform
Add lcb_luv (an io plugin for libcouchbase using libuv)

Given that uv.h and v8.h emits tons of warnings we can
reduce the warning level on the compiler and we have
to disable -Werror

Change-Id: Ice2e84d98a3bb8c8a4296eb0f5ec2ce25ee16078
Reviewed-on: http://review.couchbase.org/19466
Tested-by: Mordechai Nunberg <mnunberg@haskalah.org>
Reviewed-by: Mordechai Nunberg <mnunberg@haskalah.org>
MacOSX doesn't have ENONET

Let's use ENETDOWN instead

Change-Id: I1f72367da60c4a7ecee4e7af62ba9f412fb46c61
Reviewed-on: http://review.couchbase.org/19467
Tested-by: Mordechai Nunberg <mnunberg@haskalah.org>
Reviewed-by: Mordechai Nunberg <mnunberg@haskalah.org>
Use Couchnode as a namespace

Change-Id: Iec8cdd7d6b2b29e6902e0d5ebd27984f5d8ddc9e
Reviewed-on: http://review.couchbase.org/19468
Tested-by: Mordechai Nunberg <mnunberg@haskalah.org>
Reviewed-by: Mordechai Nunberg <mnunberg@haskalah.org>
Use the new lcb_luv plugin for IO operations

This patch is a collection of patches provided by Mark Nunberg,
but merged together and edited so that they may be applied on
top of my repository by me (Trond Norbye). All bugs are probably
a result of this..

Change-Id: I7deb0884410971a3506a2ce17486bb63ea7690aa
Reviewed-on: http://review.couchbase.org/19469
Tested-by: Mordechai Nunberg <mnunberg@haskalah.org>
Reviewed-by: Mordechai Nunberg <mnunberg@haskalah.org>
Use overloading instead of goto

I'm no big fan of goto.

Change-Id: I481a421556773662b669405c641888c2b7f73272
Reviewed-on: http://review.couchbase.org/19470
Tested-by: Mordechai Nunberg <mnunberg@haskalah.org>
Reviewed-by: Mordechai Nunberg <mnunberg@haskalah.org>
Add -I.. so waf can find the io plugin includes

Change-Id: I4f2a737af043316d8a3d9ab18df5cf6a40da9055
Reviewed-on: http://review.couchbase.org/19475
Reviewed-by: Mordechai Nunberg <mnunberg@haskalah.org>
Tested-by: Mordechai Nunberg <mnunberg@haskalah.org>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Remove old and obsolete test scripts

Some of the test scripts used the old API (that's no longer
available).

Change-Id: Iba1b0a98216c74938728718c4eed24cdeea5d222
Reviewed-on: http://review.couchbase.org/19521
Tested-by: Mordechai Nunberg <mnunberg@haskalah.org>
Reviewed-by: Mordechai Nunberg <mnunberg@haskalah.org>
Add missing deps to the default build target

Change-Id: I71b0fc58b5761bc95e5233786bf8a89d1fbb8a24
Reviewed-on: http://review.couchbase.org/19522
Tested-by: Mordechai Nunberg <mnunberg@haskalah.org>
Reviewed-by: Mordechai Nunberg <mnunberg@haskalah.org>
Change connect callback debug level to 'debug'

Change-Id: Ifc1b5dbfa4d2f8b816f90c1f7e0a47d2cd4612e8
Reviewed-on: http://review.couchbase.org/19510
Reviewed-by: Mordechai Nunberg <mnunberg@haskalah.org>
Tested-by: Mordechai Nunberg <mnunberg@haskalah.org>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Set user-data argument to v8::Undefined if not set

Change-Id: I874a137fcf849d471b48cc74b74e1cd7de0e5ec7
Reviewed-on: http://review.couchbase.org/19511
Reviewed-by: Mordechai Nunberg <mnunberg@haskalah.org>
Tested-by: Mordechai Nunberg <mnunberg@haskalah.org>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Fix bug in passing wrong arg to Function constructor

Change-Id: I63cc1d18691e389ff33613684878db61be01cc05
Reviewed-on: http://review.couchbase.org/19512
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Reviewed-by: Mordechai Nunberg <mnunberg@haskalah.org>
Tested-by: Trond Norbye <trond.norbye@gmail.com>
Use helper function for throwing exceptions

v8::ThrowException don't have a constructor for calling it with
a textual string, so instead of duplicating all of the code
creating a v8::String from a const char* let's create a
helper function for that.

Change-Id: I176f0b6c09bd5beac8edea90a825323e7f849e07
Reviewed-on: http://review.couchbase.org/19524
Reviewed-by: Mordechai Nunberg <mnunberg@haskalah.org>
Tested-by: Trond Norbye <trond.norbye@gmail.com>
Add a NameMap that maps between v8::Strings and ids

Change-Id: I493a770146d04e334a061613a4271110f4eb3923
Reviewed-on: http://review.couchbase.org/19525
Reviewed-by: Mordechai Nunberg <mnunberg@haskalah.org>
Tested-by: Mordechai Nunberg <mnunberg@haskalah.org>
Allow dictionary-style arguments for extra parameters

Change-Id: I3d53626d26119dbe6f366d79d859d90ef97f19a0
Reviewed-on: http://review.couchbase.org/19509
Reviewed-by: Mordechai Nunberg <mnunberg@haskalah.org>
Tested-by: Mordechai Nunberg <mnunberg@haskalah.org>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>