class CouchDB::Client

Defined in:

couchdb/client.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(uri : String = "http://127.0.0.1:5984") #

[View source]

Instance Method Detail

def active_tasks : Array(CouchDB::Response::ActiveTask) #

[View source]
def create_database(name : String) : Response::Status #

[View source]
def create_document(database, object) : Response::DocumentStatus #

[View source]
def databases : Array(String) #

[View source]
def delete(path : String, body : String | Nil = nil, headers : HTTP::Headers | Nil = nil) #

[View source]
def delete_database(name : String) : Response::Status #

[View source]
def delete_document(database, uuid, rev) : Response::DocumentStatus #

[View source]
def documents(database : String, include_docs = false) : Response::Results #

[View source]
def find_document(database : String, query : FindQuery, response_class) #

[View source]
def find_document(database : String, query : FindQuery) : Response::FindResults(JSON::Any) #

[View source]
def get(path : String, body : String | Nil = nil, headers : HTTP::Headers | Nil = nil) #

[View source]
def new_uuids(count = 1) : Array(String) #

[View source]
def post(path : String, body : String | Nil = nil, headers : HTTP::Headers | Nil = nil) #

[View source]
def put(path : String, body : String | Nil = nil, headers : HTTP::Headers | Nil = nil) #

[View source]
def server_info : Response::ServerInfo #

[View source]
def update_document(database, uuid, document) : Response::DocumentStatus #

[View source]