CouchDB is Awesome
Dangers of SQL
Non-relational Database, aka NoSQL
Column, Key-Value, Graph & Document
CouchDB Inside
Documents, B-Trees, & Keys... Oh my
Like this...
{ name: value }
Or like this...
{
{ name: value }:
{ name:
{ name:
{ name: value }
}
}
}
CouchDB Outside
Or why I hate ODBC, table translation, and SQL in general
Life is really simple, but we insist on making it complicated.
--Confucius
Relax
Insert | Create | POST |
Select | Read | GET |
Update | Update | PUT |
Delete | Delete | DELETE |
Wait, so I can...
curl -X GET localhost:5984
Create a DB with...
curl -X PUT localhost:5984/something_old
Inserting be like...
curl -H 'Content-Type: application/json' \
-X POST 127.0.0.1:5984/something_old \
-d '{"company": "IBM Inc."}'
Or Upload whole docs
curl -X PUT -d @example.json localhost:5984/something_blue/12345
Select stuff
curl -X GET localhost:5984/somethign_old/12345
Built In GUI
http://localhost:5984/_utils/
What about Map/Reduce
If our documents are JSON & our results are JSON...
Resources