<commit_before>This is a datamapper adapter to couchdb.

== Setup
Install with the rest of the dm-more package, using:
  gem install dm-more

Then when initializing datamapper:
  - adapter should be :couchdb
  - database should be the name of the couch adapter
  - host (probably localhost)
  - port should be specified (couchdb defaults to port 5984)

You should now be able to use resources and their properties and have them stored to couchdb.

== Views
Special consideration has been made to help work with couch views.  You can define them in the model using the view function and then use Model.auto_migrate! to add the views for Model to the database, or DataMapper.auto_migrate! to add the views for all models to the database.

An example class with views defined:

class User<commit_msg>add warning about 'type' property<commit_after>This is a datamapper adapter to couchdb.

== Setup
Install with the rest of the dm-more package, using:
  gem install dm-more

Then when initializing datamapper:
  - adapter should be :couchdb
  - database should be the name of the couch adapter
  - host (probably localhost)
  - port should be specified (couchdb defaults to port 5984)

You should now be able to use resources and their properties and have them stored to couchdb.
NOTE: 'type' is currently a reserved property, used to map couch documents to ruby models.

== Views
Special consideration has been made to help work with couch views.  You can define them in the model using the view function and then use Model.auto_migrate! to add the views for Model to the database, or DataMapper.auto_migrate! to add the views for all models to the database.

An example class with views defined:

class User
{'fraction_non_alphanumeric': 0.04046920821114369, 'fraction_numerical': 0.00469208211143695, 'mean_word_length': 4.123123123123123, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6255594', 'n_tokens_mistral': 458, 'n_tokens_neox': 439, 'n_words': 262}