couchdb

Version, currently 0.11 version
  • 0.1latestOct 7, 2018

github.com/TechMagister/couchdb.cr

CouchDB client library written in crystal

14 stars
0 dependents
License: MIT

Installation

# Add this to your shard.yml
dependencies:
  couchdb:
    github: TechMagister/couchdb.cr
    version: ~> 0.1

Then run:

shards install

shard.yml

Crystal
0.20.4
License
MIT
Author
Arnaud Fernandés <arnaud.fernandes@tech-magister.com>

Dependencies

This version declares no dependencies.

README

# couchdb

Couchdb client written in crystal

## Installation

Add this to your application's `shard.yml`:

```yaml
dependencies:
  couchdb:
    github: TechMagister/couchdb.cr
```

## Usage

```crystal
require "couchdb"

client = CouchDB::Client.new "http://127.0.0.1:5984"

info = client.server_info
info.couchdb # Welcome
info.version # 2.1.1
info.vendor.name # The Apache Software Foundation

```

## Development

- [x] Get server info
- [x] Create Database
- [x] Delete Database
- [x] List Databases
- [x] Get new uuid
- [x] Create Documents
- [x] Find all the documents
- [x] Find Documents with criteria
- [x] Delete Documents
- [x] Update Documents

## Contributing

1. Fork it ( https://github.com/TechMagister/couchdb/fork )
2. Create your feature branch (git checkout -b my-new-feature)
3. Commit your changes (git commit -am 'Add some feature')
4. Push to the branch (git push origin my-new-feature)
5. Create a new Pull Request

## Contributors

- [TechMagister](https://github.com/TechMagister) Arnaud Fernandés - creator, maintainer