Permalink
Browse files

Add some infrastructure files.

  • Loading branch information...
1 parent 86fd430 commit 43c6d51fb05e4171d34dd09752fba8bb5be78e89 @wvanbergen committed Jul 16, 2011
Showing with 85 additions and 2 deletions.
  1. +15 −0 Cakefile
  2. +20 −0 LICENSE
  3. +23 −0 README.md
  4. +27 −2 package.json
View
@@ -0,0 +1,15 @@
+{ exec, spawn } = require 'child_process'
+print = (data) -> console.log data.toString().trim()
+
+task 'build', ->
+ exec 'mkdir -p lib && coffee -c -o lib src'
+
+task 'dev', 'Continuous compilation', ->
+ coffee = spawn 'coffee', '-wc --bare -o lib src'.split(' ')
+ coffee.stdout.on 'data', print
+ coffee.stderr.on 'data', print
+
+task 'test', ->
+ exec 'vows test/*.coffee', (error, stdout, stderr) ->
+ print stdout
+ print stderr
View
20 LICENSE
@@ -0,0 +1,20 @@
+Copyright (c) 2011 Willem van Bergen
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
View
@@ -0,0 +1,23 @@
+### node-vertica
+
+A pure javascript library to connect to a Vertica database.
+
+## Example
+
+```coffeescript
+
+Vertica = require 'vertica'
+
+connection = Vertica.connect user: "username", password: 'password', database: "database", host: 'localhost', (conn) ->
+
+ query = conn.query "SELECT * FROM table"
+ query.on 'fields', (fields) ->
+ console.log("Fields:", fields)
+
+ query.on 'row', (row) ->
+ console.log(row)
+
+ query.on 'end', (status) ->
+ console.log("Finished!", status)
+
+```
View
@@ -1,12 +1,37 @@
{
"name": "vertica",
"version": "0.0.1",
- "description": "Pure Javascript client library for Vertica Systems",
+ "description": "Pure Javascript client library for Vertica",
+ "keywords": ["database", "vertica", "sql"],
"author": "Willem van Bergen <willem@shopify.com>",
+ "licenses": [
+ {
+ "type": "MIT",
+ "url": "http://opensource.org/licenses/mit-license.php"
+ }
+ ],
+ "maintainers": [
+ {
+ "name": "Willem van Bergen",
+ "email": "willem@shopify.com",
+ "web": "http://www.vanbergen.org"
+ }
+ ],
"devDependencies": {
"coffee-script": ">= 1.1.1",
"vows": "0.5.x"
},
+ "repository": {
+ "type": "git",
+ "url": "git://github.com/wvanbergen/node-vertica.git"
+ },
"main": "./lib/vertica",
- "engine": "node >= 0.4.9"
+ "directories": {
+ "lib": "./lib"
+ },
+ "engine": "node >= 0.40",
+ "scripts": {
+ "prepublish": "cake build",
+ "test": "cake test"
+ }
}

0 comments on commit 43c6d51

Please sign in to comment.