scouchdb : Persisting Scala Objects in CouchDB
scouchdb offers a Scala interface to using CouchDB. Scala offers objects and classes as the natural way to abstract entities, while CouchDB stores artifacts as JSON documents. scouchdb makes it easy to use the object interface of Scala for persistence and management of Scala objects as JSON documents.
The primary motivation for making scouchdb is to offer a form of CouchDB driver to manipulate objects in a completely non-intrusive manner. The Scala objects are not CouchDB aware and remain completely transparent of any CouchDB dependency. Incorporating CouchDB specific attributes like id and rev take away a lot of reusability goodness from domain objects and make them constrained only for the specific platform.
Running the Test Cases
- Ensure that the Scala View Server is set up as per the document Scala View Server
- mvn jar:test-jar ## will generate scouchdb-0.5-tests.jar : required for running the test cases
- mvn exec:java ## will execute all test cases
- ScalaTest 0.9.5
- Scala 2.7.5
- Apache HTTP Client 4.0-beta1
- Apache HTTP Core 4.0
- CouchDB 0.9
This software is licensed under the Apache 2 license, quoted below. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.