Skip to content

Instantly share code, notes, and snippets.

@curzonj curzonj/gist:229538
Created Nov 8, 2009

What would you like to do?
# gem install dm-fluiddb-adapter
require 'dm-core'
require 'memcached'
CACHE = 'localhost:11211', :prefix_key => 'fluiddb-test:'
DataMapper.setup(:default, "fluiddb://")
class MyModel
include DataMapper::Resource
property :id, String, :key => true
property :name, String
# Ignore the 404 errors logged during the migration, it's just the adapter
# testing to see if the fluiddb tags/namespaces exist.
MyModel.create(:name => 'Hello World')
puts MyModel.first.inspect
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.