[ICO]NameLast modifiedSizeDescription
[PARENTDIR]Parent Directory  -  
[   ]rethinkdb.js2025-03-12 08:59 309  
[   ]package.json2025-03-12 08:59 792  
[TXT]README.md2025-03-12 08:59 880  
[   ]proto-def.js2025-03-12 08:59 4.2K 
[   ]util.js2025-03-12 08:59 6.4K 
[   ]errors.js2025-03-12 08:59 9.0K 
[   ]cursor.js2025-03-12 08:59 21K 
[   ]net.js2025-03-12 08:59 33K 
[   ]ast.js2025-03-12 08:59 137K 
# JavaScript Driver

This package is the officially supported driver for querying a
RethinkDB database from a JavaScript application.  It is designed to
be run in Node.js but also has an alternate http connection type that
is used by the RethinkDB web ui.  The http connection type is not
intended to be used by applications, since it isn't secure.
Ultimately, the http connection type will move into the web ui code
and out of the driver.

Check out
[rethinkdb.com/api/javascript](http://www.rethinkdb.com/api/javascript)
for documentation and examples of using this driver.

## Creating the proto-def.js

To build the JavaScript driver, you'll need to first generate the
definitions file `proto-def.js`. To do that from the `drivers`
directory, you can do:

```bash
$ ./convert_protofile -l javascript \
   -i ../src/rdb_protocol/ql2.proto \
   -o ./javascript/proto-def.js
```