This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
| name | age | message | |
|---|---|---|---|
| |
.document | ||
| |
.gitignore | ||
| |
LICENSE | ||
| |
README.rdoc | ||
| |
Rakefile | ||
| |
VERSION | ||
| |
fuzzy_bunny.gemspec | ||
| |
lib/ | ||
| |
test/ |
README.rdoc
fuzzy_bunny
You know how people name their libraries really cool things? I.e., "named after the sumerian god of war and womanizing"?
This isn’t like that.
Fuzzy Bunny: SimpleDB client library built on aws_sdb_bare and typhoeus
How To
`sudo gem install rjspotter-fuzzy_bunny`
# set these environment variables first
ENV['AMAZON_ACCESS_KEY_ID'] = <your id>
ENV['AMAZON_SECRET_ACCESS_KEY'] = <your secret>
ENV['AMAZON_SDB_HOST'] = 'http://sdb.amazonaws.com'
# then require the library
require 'fuzzy_bunny'
# Create a Domain
FuzzyBunny::Domains.create('cool_stuff')
# generate the helper
FuzzyBunny::Items.generate('cool_stuff')
# add data
CoolStuff.update('cool_document_name', {:fuzzy => 'bunny'})
# retrieve data
CoolStuff.find('cool_document_name').items['cool_document_name']['fuzzy'] # => ['bunny']
# add more data
CoolStuff.update('cool_document_name', {:fuzzy => 'panther'})
# retrieve data
CoolStuff.find('cool_document_name').items['cool_document_name']['fuzzy'] # => ['bunny', 'panther']
#search (AWS simpledb select syntax)
CoolStuff.spat("`fuzzy` = bunny").items # => {'cool_document_name' => {'fuzzy' => ["bunny", "panther"]}}
# overwrite
CoolStuff.update('cool_document_name', {:fuzzy => {:value => 'minotaur', :replace => true}})
# retrieve data
CoolStuff.find('cool_document_name').items['cool_document_name']['fuzzy'] # => ['minotaur']
# destroy document
CoolStuff.destroy('cool_document_name')
# delete domain
FuzzyBunny::Domains.delete('cool_stuff')
Copyright
Copyright © 2009 rjspotter. See LICENSE for details.








