Skip to content
Browse files

docs

  • Loading branch information...
1 parent d9d37c6 commit 805b4c170df0d26fe07c9d5289817467fa0226eb @devdazed devdazed committed Dec 22, 2011
Showing with 26 additions and 2 deletions.
  1. +26 −2 Readme.md
View
28 Readme.md
@@ -2,12 +2,36 @@
# Cassie
NodeJS Bindings for Cassandra
-
+
+# installation
+
+ npm install cassie
+
+# usage
+```javascript
+ var cassie = require('cassie'),
+ pool = new cassie.ConnectionPool(['localhost:9160','localhost:9161']);
+
+ pool.on('error', function(err){
+ console.log('ERROR:' + err);
+ });
+
+ //connect to the local machine
+ pool.connect('node_cassandra_test', function(err, keyspace){
+ if(err){
+ throw(err);
+ } else {
+ keyspace.cf_one.insert('abcd', { 'column':'value' }, { ttl:1234, consistencyLevel:1 }, function(err){
+ //TODO: Be able to get fields
+ });
+ }
+ });
+```
## License
(The MIT License)
-Copyright (c) 2011 Russell Bradberry <rbradberry@gmail.com>
+Copyright (c) 2011 SimpleReach <rbradberry@simplereach.com>
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the

0 comments on commit 805b4c1

Please sign in to comment.
Something went wrong with that request. Please try again.